Base64 Encoding & Decoding
Convert UTF-8 text to or from Base64 locally in your browser.
Base64 Decoding
Convert Base64 text back to UTF-8 text.
- Paste encoded text
- Decode bytes
- Copy text
Base64 Encoding
Convert UTF-8 text to Base64 text.
Base64 encoding and decoding: what it is and is not
A clear explanation of Base64 text encoding, common uses, and why it provides no secrecy.
Base64 is an encoding that represents binary data with a restricted set of printable text characters. It is commonly used in data URLs, email attachments, JSON payloads, and configuration values because it safely carries bytes through systems designed for text. Base64 does not encrypt, compress, sign, or hide its input. Anyone who receives a Base64 string can decode it without a key.
To encode text here, enter the original UTF-8 text and copy the resulting Base64 value. To decode, paste a properly formed Base64 string and choose the decode action. Padding characters such as equals signs may appear at the end of an encoded value, although some URL-safe protocols omit or transform characters according to their own rules. The result depends on the underlying bytes, so a Base64 string for readable text is not necessarily compatible with a Base64 string for a file or encrypted binary data.
Use Base64 when you need transport-safe text, not when you need protection. If the content is sensitive, encrypt it first with an appropriate, authenticated encryption scheme, then encode the ciphertext if a text channel requires it. Be careful when copying values from URLs or forms: some systems use the Base64URL alphabet, where plus and slash are replaced, and may remove padding. Validate and decode only data you expect, because decoding is not a safety check or proof of trustworthiness.
A careful workflow
- Use UTF-8 text input when you need a textual Base64 representation.
- Keep Base64 separate from URL-safe Base64 unless the receiving protocol explicitly supports it.
- Encrypt or authenticate sensitive content before encoding it.
FAQ
Is Base64 encryption?
No. It is reversible encoding and requires no key.
Why does Base64 look longer than the original?
It represents every three input bytes with four text characters, so it usually increases size.
Can I Base64-decode a password safely?
Decoding only reveals the original bytes; it does not validate the value or make it safe to handle.
Further reading: RFC 4648: Base-N encodings