Base64 Encode Decode

Convert text to Base64 or decode Base64 back to text. Handy for quick payload checks, data URLs, and debugging APIs.

Text or Base64

How to use this tool

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.

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.

More developer tools