Base64 Encode & Decode
Encode text to Base64 or decode it back, with UTF-8 and URL-safe support. Runs entirely in your browser.
How to use it
- Type in either box — encoding and decoding happen live in both directions.
- URL-safe mode swaps + and / for - and _ and drops the padding.
- Full Unicode is handled correctly via UTF-8.
Base64 encodes any data — text, or binary data represented as text — into a string using only 64 printable characters (A–Z, a–z, 0–9, + and /), which makes it safe to embed in places that only reliably handle plain text: email attachments, JSON payloads, data URLs, and API tokens.
Standard vs URL-safe Base64
Standard Base64 uses + and / as two of its 64 characters, both of which have special meaning inside a URL (space and path separator territory), so a standard Base64 string can break if dropped straight into a URL or filename. URL-safe Base64 swaps those two characters for - and _, and typically drops the trailing = padding, producing a string that survives being used directly in a URL path or query parameter without further escaping.
Encoding text vs decoding back
Both directions run live in the two boxes — type or paste plain text on one side to see it encoded, or paste a Base64 string on the other side to decode it back to readable text, with full Unicode handled correctly via UTF-8 so accented characters and non-Latin scripts round-trip without corruption.
Questions people ask
Is Base64 encryption?
No. It is an encoding, not encryption — anyone can decode it. Use it for transporting binary data safely as text, never for hiding secrets.
Last updated 17 August 2026