Base64 Encoder / Decoder

Last updated:

Encode plain text to Base64, or decode Base64 strings back to readable text — instantly, in your browser.

Runs entirely in your browser. Your files and text are never uploaded to any server.

Other developer tools

Validating or formatting the JSON your Base64 string came from (or is heading into)? Use theJSON Formatter & Validator. Need a random token or secret to encode instead of typing one out? Generate one with thePassword Generator.

How to use the Base64 Encoder / Decoder

  1. Type or paste your text or Base64 string.
  2. Click Encode to convert text to Base64, or Decode to convert Base64 back to text.
  3. Click Copy to copy the result.

Frequently asked questions

What is Base64 encoding used for?

Base64 encodes binary or text data into an ASCII string format, commonly used for embedding data in URLs, JSON, or emails.

What happens if I try to decode invalid Base64?

You'll see a clear error message letting you know the input isn't valid Base64.

Related tools