Data tools

We never see your dataFree, no sign-up

Base64 encoder and decoder

Paste Base64 to read it, or text or a file to encode it. Images and PDFs inside Base64 come back as files you can open.

Guide

How to encode and decode Base64

  1. Paste or open

    Paste text or Base64, or open any file to encode it.

  2. Choose the direction

    Encode or Decode. Pasted Base64 is spotted and offered for decoding.

  3. Copy or download

    Copy the text, or download a decoded image, PDF or other file.

Know-how

Good to know

Updated

What Base64 is for

Base64 writes any bytes using 64 safe characters (A–Z, a–z, 0–9, + and /), so files can travel inside text: email attachments, JSON fields, data URIs in CSS and HTML, and tokens like JWTs.

It's an encoding, not encryption. Anyone can decode it, so never treat Base64 as a way to hide a password or key.

Variants this tool reads

URL-safe Base64 uses - and _ instead of + and /, and often drops the = padding; JWTs and many APIs use it. Data URIs start with data:image/png;base64, before the encoded bytes. Line breaks every 64 or 76 characters, as in email and PEM files, are ignored.

Base64 makes data about a third larger: every 3 bytes become 4 characters.

Questions

Not here? Email us.