Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text.
What is Base64?
Base64 is a way of representing binary or text data using only 64 safe, printable characters (A-Z, a-z, 0-9, + and /), which makes it possible to embed images, files or arbitrary bytes inside text-based formats like JSON, XML, HTML or email — systems that were not designed to carry raw binary safely.
How to use it
- Choose Encode to turn plain text into Base64, or Decode to turn Base64 back into text.
- Type or paste your input; the result updates automatically.
- Turn on "URL-safe" if you need the variant that replaces
+and/with-and_, commonly used inside URLs and JWTs.
Base64 is encoding, not encryption — anyone can decode it instantly, so it should never be relied on to keep information secret. This tool correctly handles full Unicode text (accented letters, emoji, non-Latin scripts) by encoding the underlying UTF-8 bytes rather than just the first 256 characters, which is a common bug in simpler Base64 tools. Typical uses include embedding a small image directly in CSS or HTML, encoding data for an API that expects a text field, or decoding the header and payload sections of a JWT to inspect their contents.