Base64 Encode / Decode
Convert text to and from Base64, the encoding used in data URIs, emails, JWTs and basic authentication headers.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Mode
How to use Base64 Encode / Decode
- Choose Encode or Decode.
- Paste your text.
- Copy the result. Use Swap to reverse it.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding that anyone can reverse. Never use it to protect passwords or secrets.
What is URL-safe Base64?
It replaces + and / with - and _ and removes the = padding, so the result can be used in URLs and file names. JWTs use it.
Is my data sent to a server?
No. Everything runs in your browser, so API keys, tokens, configs and customer data never leave your machine.
Related tools
All Developer Tools →- Image to Base64 Encode an image as Base64 text to embed it directly in HTML, CSS, JSON or emails without a separate file.
- URL Encode / Decode Make text safe for URLs and query strings, or read encoded URLs from logs and analytics.
- JWT Decoder Inspect JSON Web Tokens from your app or API.
- HTML Entity Encoder Safely show code and special characters on a web page, or turn &-style entities back into readable text.
- SQL Formatter Make long, single-line SQL queries readable for code reviews, documentation and debugging.
- HTML to Markdown Turn HTML from a web page, CMS or email into Markdown you can use in READMEs, wikis and static site generators.