Skip to content
Developer tools

Base64 Encoder & Decoder

Convert text to Base64 and back, with UTF-8 handled correctly.

Options

Everything above is processed in this browser tab. Your input is never sent to a server.

What is Base64 Encoder & Decoder?

Base64 Encoder & Decoder converts text to Base64 and decodes Base64 back to text. Base64 represents binary data using 64 ASCII characters so it can travel safely through systems that expect text, such as HTTP headers, JSON fields, data URIs and email attachments.

How to use it

  1. 1Paste the text or Base64 string.
  2. 2Choose encode or decode.
  3. 3Enable the URL-safe alphabet if the value will appear in a query string.
  4. 4Copy the converted value.

Features

  • Correct UTF-8 handling, so emoji and non-Latin scripts survive a round trip
  • URL-safe variant replacing + and / with - and _
  • Clear error when the input is not valid Base64

When people use it

Reading an encoded log entry

Payloads are often logged encoded. Decoding locally shows what was actually sent without piping the string through a shell command.

Building Basic auth headers

Basic authentication expects username:password encoded as Base64. Encode it here when testing an endpoint by hand.

Known limits

  • Base64 is an encoding, not encryption. Anyone can decode it; never use it to protect a secret.
  • Encoding grows data by roughly 33 percent.

Base64 Encoder & Decoder questions

Related tools

Hand-picked hubs, guides and companion tools related to this page.

Last reviewed 2026-08-01. Browse the full directory.