Base64 Encode Decode
Convert text to Base64 or decode Base64 back to text. Handy for quick payload checks, data URLs, and debugging APIs.
Runs in your browser · nothing uploaded
Text or Base64
How to use this tool
- Paste or type your input in the tool above.
- Run the action and inspect the output.
- Copy the result — nothing was uploaded.
Details
Paste plain text and click Encode to produce Base64. Paste a Base64 string and click Decode to recover the original text. The tool uses browser APIs only, so short secrets you are debugging stay on your machine.
Base64 is an encoding, not encryption. Anyone who receives the string can decode it. Use it for transport formats and tooling, not as a substitute for proper cryptography.
For URL-safe variants used by some JWTs, you may still need to swap characters after encoding. Pair this page with the URL encoder when embedding values in query strings.
Developers often meet Base64 in data URLs (`data:image/png;base64,…`), HTTP Basic auth headers, and binary fields serialized as text in JSON. Decoding a snippet locally is a fast way to inspect what an API actually sent without writing a throwaway script.
If decode fails, check for missing padding (`=`), line breaks copied from email, or a URL-safe alphabet that still needs translation. Trim whitespace first. Remember again: readable after decode means it was never a secret by itself.
Frequently asked questions
- Is Unicode supported?
- Yes. The tool encodes with UTF-8 via encodeURIComponent before btoa, and reverses that path when decoding.
- Does my text leave the browser?
- No. Encode and decode run locally. Useful for inspecting tokens or config snippets during development.
- What if decode fails?
- The input is probably not valid Base64 or was encoded with a different character set. Trim whitespace and try again.