Base64 Encoder / Decoder

Encode text or files to Base64, or decode Base64 back to text. Everything happens locally.

Encode plain text or any uploaded file into a Base64 string, or paste a Base64 string to decode it back to readable text or a downloadable file. Base64 is commonly used to embed binary data (images, fonts, certificates) inside JSON, CSS, or email payloads as plain ASCII text. Both directions run entirely in your browser, so there's no upload and no practical size limit beyond your device's memory.

Runs in your browser // nothing is uploaded

Loading tool

How it works

  1. 01

    Paste text, or upload a file to encode.

  2. 02

    Switch between Encode and Decode mode as needed.

  3. 03

    Copy or download the result.

Details

Runs
In your browser
Files uploaded
No
Cost per run
Free
Sign-in
Not required
Works offline
Yes, once loaded

Last updated 2026-08-03

Common questions

Can I encode files, not just text?

Yes - upload a file and it's encoded to a Base64 string you can copy or download.

Why does decoding sometimes fail?

The input must be valid Base64 (correct alphabet and padding). Extra whitespace or truncated strings will throw an error.

Does Base64 encoding compress data?

No - it actually increases size by about 33%, since it re-encodes binary data as ASCII text.

Is my data uploaded anywhere?

No - encoding and decoding both run locally.

Related tools