Base64 Encode & Decode

Six4 · Base64 for text and files.

Made on your device · nothing uploaded
Convert
Direction

Base64 is encoding, not encryption. Anyone can decode it.

Type something to convert.

Converted on your device. Nothing is uploaded.

How to decode or encode Base64

  1. Choose Text or File.
  2. For text, pick Encode or Decode and paste your text or Base64. The result updates as you type.
  3. For files, choose or drop a file to get its Base64 or a ready-to-use data: URI.
  4. Copy the result, or download decoded images, PDFs and other files.

When it helps

Base64 to image or PDF
Paste a Base64 string from an API or email source and download it as the PNG, JPG or PDF it really is.
Image to data URI
Turn a small icon into a data: URI to embed it directly in HTML or CSS.
Tokens and headers
Decode the readable parts of a Basic auth header or a URL-safe Base64 value.

Questions

What is the difference between standard and URL-safe Base64?

URL-safe Base64 uses - and _ instead of + and /, and usually drops the = padding, so it can sit in URLs and file names. Decoding accepts both.

Why does my decoded text look like gibberish?

The Base64 probably holds a file, not text. The tool checks the first bytes and offers it as a download with the right extension.

Is Base64 a way to encrypt data?

No. Base64 only changes how bytes are written. Anyone can decode it, so never use it to hide passwords or secrets.

Why is the Base64 bigger than my file?

Base64 writes every 3 bytes as 4 characters, so the result is about a third larger than the original file.

Are my files uploaded?

No. Encoding and decoding happen in your browser. Files up to 25 MB stay on your device.

Privacy

Text and files are encoded and decoded in your browser. Nothing is uploaded or stored.

Limitations

  • Files are limited to 25 MB to keep the page responsive.
  • File type detection covers common formats like PNG, JPG, GIF, WebP, PDF, ZIP, SVG and MP3. Others download as .bin.

Try these too

Use ↑ ↓ to move, Enter to open, Esc to close.