Base64 Encoder & Decoder

Convert text or a file to Base64, or decode Base64 back - all on your device, nothing is uploaded.

Letters transforming into Base64 code

Encode a file instead

Pick any file and get its Base64 string - handy for data URIs and API payloads. Files are read locally.

Good to know

Is anything uploaded?

No. Encoding and decoding run in your browser, for text and files alike.

Why did decoding fail?

The input must be valid Base64 (letters, digits, + and /, with = padding). Whitespace is trimmed automatically; other stray characters break it.