Base64 Encoder / Decoder
Encode or decode Base64 strings instantly.
🔒 Encoding runs entirely in your browser.
About Base64
Base64 encodes binary data as ASCII so it survives transports that mangle non-text bytes (email, JSON, URLs). It expands the payload by ~33%, so don't use it for storage when you have alternatives.
UTF-8 mode handles non-ASCII characters correctly. URL-safe mode swaps +/ for -_ and drops padding — used in JWTs and URL fragments.
Frequently asked
▸What's URL-safe Base64?
Standard Base64 uses + and / characters that need percent-encoding in URLs. URL-safe Base64 replaces them with - and _, and usually drops the = padding. Pick the URL-safe variant when the result goes in a URL or JWT.
▸Is Base64 encryption?
No. Base64 is encoding — anyone can decode it instantly. It's used to ship binary data through text channels (email, JSON, URLs), not to hide it. If you need confidentiality, use AES Encrypt instead.
▸How big does the output get?
Base64 expands input by roughly 33% — every 3 bytes of input become 4 characters of output. For very large files this overhead matters; consider compressing first or using a binary-safe transport.
You might also like
- JWT DecoderDecode and inspect a JSON Web Token's header, payload, and expiry.
- AES Encrypt / DecryptEncrypt or decrypt text with AES-GCM, deriving a key from a passphrase via PBKDF2 — all in your browser.
- Escape / UnescapeEscape or unescape strings for JSON, JavaScript, HTML attribute, XML, and SQL contexts.
- Hash GeneratorCompute SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or a file.