Base64 encode / decode
Base64 Encoder and Decoder
Type or paste, pick a direction, and see results instantly..
How it works
Base64 turns any binary or text into a limited alphabet (A-Z, a-z, 0-9, +, /) so it can travel safely through systems that only accept plain text. It expands data size by roughly 33%, so use it for transport compatibility, not compression.
- Common in email (MIME), data URLs, and simple API payloads.
- Encoding is not encryption—secrets still need proper encryption.
Quick examples
Paste your own text above to see live results as you type.
Mini FAQ
Why do I see "=" at the end?
Padding characters make the output length a multiple of 4 so it can decode reliably.
Can I encode files?
Yes—read the file as bytes in your app, then Base64 the buffer. This page is for text, so large files may be slow.
Is URL-safe Base64 different?
URL-safe replaces + with - and / with _; add it manually if needed.
Related tools