Base64 Encoder / Decoder
Encode and decode Base64, both directions.
Everything is processed on your device. Nothing you upload or type is sent to a server, and nothing is stored.
Base64 Encoder / Decoder online
Base64 turns arbitrary data into plain ASCII so it survives systems that only handle text — data URIs, basic auth headers, JSON payloads, email attachments. Paste text either way and it converts as you type. Unicode and emoji are handled correctly, which many quick tools get wrong.
How to use base64 encoder / decoder
Choose a direction
Encode plain text into Base64, or decode Base64 back into text.
Paste your input
The result appears as you type.
Copy the result
Copy it to your clipboard, or download it as a text file.
Frequently asked questions
Is Base64 encryption?
No, and this trips people up. Base64 is an encoding, not a cipher — anyone can decode it instantly with no key. Never use it to protect a password, token or anything else sensitive.
Why does my Base64 fail to decode?
Usually a truncated string, a stray line break, or URL-safe Base64 — which uses "-" and "_" instead of "+" and "/". This tool accepts the URL-safe variant and missing padding automatically.
Does it handle emoji and accented characters?
Yes. Text is converted to UTF-8 before encoding, so emoji, accents and non-Latin scripts round-trip exactly. Tools that call btoa() directly throw an error on these.
Why is encoded data bigger than the original?
Base64 represents every 3 bytes as 4 characters, so output is always about 33% larger. That overhead is the price of being safe to put in a text field.
Is my data sent anywhere?
No. Encoding and decoding happen in your browser, so it is safe to paste tokens and API responses.
You might also like
- Developer ToolsURL Encoder / DecoderPercent-encode and decode URLs, query strings and parameters.
- Developer ToolsJSON FormatterFormat, validate and minify JSON with clear error messages.
- Developer ToolsQR Code GeneratorCreate a QR code for a link, text, email address or phone number.
- Text ToolsWord CounterCount words, characters, sentences and reading time as you type.