Base64 Encode & Decode

Encode text or files to Base64 and decode Base64 back — privately in your browser. Free online Base64 converter, no upload.

Base64 encode and decode in your browser

Convert text or files to Base64 and back without sending anything to a server. Useful for data URIs, configs, and debugging.

What you can do with it

Create a data URI
Encode an image or snippet to Base64 for embedding in HTML or CSS.
Recover a file from Base64
Paste Base64 and download the decoded bytes.

How to encode or decode Base64

  1. Choose Encode or Decode.
  2. Paste text or encode a file.
  3. Click Convert, then copy the output or download decoded bytes.

Encode files to Base64 without uploading them

Data URIs, email attachments, and config embeds need Base64. Encoding locally keeps binaries and secrets off public converter sites. Decode the same way to recover a file from a pasted string.

Text vs file workflows

Use text mode for small UTF-8 strings. Use file mode when encoding images or recovering downloaded bytes from a Base64 blob.

Related reading and tools

Frequently asked questions

Is my data uploaded?
No. Encoding and decoding run entirely in your browser.
Can I encode a file?
Yes. Use Encode file to turn any file into a Base64 string, or download decoded bytes as a file.
Does this support UTF-8 text?
Yes. Text is encoded and decoded as UTF-8.

Related tools

View all Developer Tools