Skip to content
Encode & Decode

Base64 Encoder & Decoder

Base64 represents binary data using 64 printable characters, so it can travel safely through systems that only handle text — email bodies, JSON fields, data URIs and HTTP headers. This tool converts in both directions.

Free, no signupRuns entirely in your browser
About

What the Base64 Encoder & Decoder does

It is worth being clear about what Base64 is not: it is an encoding, not encryption. Anyone can decode it instantly, as this page demonstrates. It provides zero confidentiality, so never use it to protect a password or a token from being read.

How it works

Using the Base64 Encoder & Decoder

  1. 1Paste your text or Base64 string.
  2. 2Choose whether to encode or decode.
  3. 3Encoding converts the text to UTF-8 bytes, then maps each group of three bytes to four Base64 characters.
  4. 4Decoding reverses that, reconstructing the original bytes and reading them back as UTF-8.
  5. 5Copy the result.
Use cases

What people use it for

  • Embedding a small image in CSS or HTML as a data URI
  • Decoding a Base64 field from an API response
  • Encoding credentials for HTTP Basic authentication
  • Moving binary data through a text-only field
FAQ

Frequently asked questions

6 related

Related tools

All tools →