Base64 Encoder/Decoder Tool

Online Base64 encoding and decoding tool for text and files

An online Base64 encoder and decoder for text and images. Text is encoded as UTF-8, and image data URIs can be previewed directly.

Why non-ASCII text gets mangled

Base64 encodes bytes, not characters. Running Chinese text through a Latin-1 encoder splits each three-byte character incorrectly, and decoding returns garbage. This tool always encodes as UTF-8 first, so CJK text, emoji and mixed-language strings round-trip intact.

Inlining images as Base64

Small icons can be embedded as data URIs in CSS or HTML to save an HTTP request, at the cost of roughly one third more bytes and no independent caching. Past a few dozen kilobytes, keep the image as a file reference — or shrink it with the image compressor first.

Frequently asked questions

Is Base64 encryption?
No. It is only an encoding and anyone can reverse it. Use real encryption if the data must stay secret.
Why is the output larger than the input?
Base64 represents 3 bytes with 4 characters, so size grows by about 33% by definition. Nothing is being compressed.
Is anything uploaded?
No. Encoding and decoding run in the browser, and images are read locally.