ENCODERS & TEXT
Base64 Encode / Decode Online — UTF-8 Safe & Free
Encode text to Base64 or decode Base64 back to text, with correct UTF-8 handling for accents and emoji. Runs in your browser; nothing is uploaded.
I tuoi file non lasciano mai il tuo dispositivo.
Convert text to Base64 and back again. Base64 is the standard way to carry text or binary data through channels that only expect plain ASCII — data URLs, email attachments, JWT payloads, HTTP basic-auth headers, and config files all rely on it. Paste your input, pick a direction, and the result appears instantly.
It is encoding, not encryption
This is the one thing to get right: Base64 is reversible with no key, so anyone can decode it back to the original in seconds. It provides zero secrecy. Never use it to store or hide passwords, tokens, or secrets — its only job is to make data safe to transport as text, not to protect it.
Why non-ASCII text needs care
The browser's built-in btoa() only accepts Latin-1 characters and throws on anything outside that range — accents, CJK, emoji. This tool first converts your text to UTF-8 bytes and Base64-encodes those, so "café", "日本語", and "🚀" round-trip correctly instead of erroring or coming back garbled.
What the encoding looks like
Encoding maps groups of bytes onto a 64-character alphabet; decoding reverses it exactly. The = at the end is padding so the length is a multiple of four.
Plain text
HelloBase64
SGVsbG8=Frequently asked questions
- Why does decoding fail with an error?
- The input isn't valid Base64 — usually a stray space, a truncated string, or URL-safe Base64 that uses - and _ instead of + and /. Check that you pasted the complete string and that it uses the standard alphabet.
- Is my text uploaded anywhere?
- No. Both encoding and decoding run in your browser with JavaScript, so tokens, config values, and anything sensitive stay on your device.
- Does it handle padding automatically?
- Yes. The encoder adds the correct = padding, and the decoder accepts input whether or not the padding is present.