Base64 Encoder & Decoder
Encode and decode Base64 strings easily. Enter your text and choose encode or decode.
Base64 turns binary data into plain text using 64 safe characters, which is why it shows up in data URIs, email attachments, JWTs, and API payloads. Encode text to Base64 or decode Base64 back to readable text — instantly, in your browser.
How to encode and decode Base64
- Paste text into the input box.
- Click Encode to convert it to Base64.
- Click Decode to convert Base64 back to the original text.
- Copy the result with one click.
Base64 example
The = signs at the end are padding — Base64 output is always a multiple of 4 characters. Decoding is strict: malformed input produces an error rather than garbage.
Hello, World! → SGVsbG8sIFdvcmxkIQ==Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it instantly. Never use it to hide secrets; use proper cryptography.
Why does Base64 make text longer?
It packs 3 bytes into 4 characters, so output is roughly 33% larger than the input.
Can it handle emoji and non-English text?
Yes — encoding and decoding operate on UTF-8, so all Unicode text round-trips correctly.