Base64 Encoder

Convert text to Base64, or encode a file for embedding in data URLs and JSON payloads.

Your text or file is encoded locally in your browser and never uploaded.

How to use Base64 Encoder

  1. Type or paste text into the box, or upload a file.
  2. The Base64 output appears automatically.
  3. Copy it, or download it as a .txt file.

About this tool

Base64 turns binary data into plain text characters, which lets you embed images in HTML or CSS, send binary content through text-only channels, and store files inside JSON.

Encoding runs entirely in your browser, so even private files are never transmitted.

Frequently asked questions

Is Base64 encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it, so never rely on it to protect secrets.
Why does Base64 output look longer than the input?
Base64 uses 64 characters to represent data, so the output is about a third larger than the original bytes.

Related tools