Base64 encode and decode
Convert text to Base64 and back, with full UTF-8 and URL-safe support.
Related tools
Base64 encode and decode
Base64 turns arbitrary text into a compact set of 64 safe characters, which makes it the standard way to move data through channels that only accept plain ASCII. Paste text to get its Base64 form, or paste Base64 to read the original text back. Switch between the two directions with the mode selector.
Encoding is fully UTF-8 aware, so Slovak diacritics, Greek letters, CJK characters and emoji all survive a round trip intact. The "URL-safe alphabet" option swaps the standard + and / characters for - and _ and drops the trailing padding, producing a string you can drop straight into a query parameter, a path segment or a JWT without further escaping. The "Wrap at 76 characters" option breaks long output into fixed-width lines, the format expected by MIME email headers and PEM-style blocks.
Decoding is deliberately forgiving. Whitespace and line breaks are stripped before decoding, both the standard and URL-safe alphabets are accepted, and missing padding is tolerated — so a value copied out of a log file or a config usually just works. If the input genuinely cannot be Base64, you get a plain explanation rather than a silent wrong answer.
Everything runs in your browser. Nothing is uploaded, which matters here more than for most tools: Base64 strings routinely carry API tokens, session data, basic-auth credentials and encoded payloads. Decode them here and the plaintext stays on your machine. The tally under the output shows sizes on both sides, so you can see the roughly 33% growth encoding adds.