ToolFox

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text — Unicode-safe, entirely in your browser.

Result

How it works

Text is first converted to UTF-8 bytes, then those bytes are represented in the 64-character alphabet (A–Z, a–z, 0–9, +, /) with = padding — three bytes become four characters. Decoding validates the input strictly: non-Base64 characters or byte sequences that are not valid UTF-8 produce a clear error instead of garbage.

Example

"hello" encodes to aGVsbG8=. Devanagari works too: नमस्ते round-trips exactly, because encoding operates on UTF-8 bytes rather than raw characters.

Frequently asked questions

Is Base64 encryption?

No — it is a reversible encoding anyone can decode. Never use it to protect secrets.

Why does the output end with =?

Padding aligns the output to 4-character blocks when the byte length is not a multiple of three.

Can I decode data URLs?

Yes — paste the part after base64, (without the data:...;base64, prefix). Binary output that is not text may show replacement characters.

Is my data uploaded?

No — encoding and decoding are local.

Related tools