Free · Runs in your browser · No signup

Encode and decode Base64 text

Base64 turns binary or text data into plain ASCII characters that are safe to put in URLs, JSON, emails and HTTP headers. This tool encodes and decodes it and handles Unicode text (emoji and non-Latin characters) correctly.

How it works

Base64 Encode & Decode: 3 simple steps

  1. 1

    Choose Encode or Decode.

  2. 2

    Paste your text; the result updates as you type.

  3. 3

    Copy the output, using URL-safe mode when needed.

Switch on URL-safe mode to get the Base64URL variant used in JWTs and query strings. All processing happens in your browser.

Why use it

Built for speed and privacy

  • Correct UTF-8 handling for any language
  • URL-safe Base64URL option
  • Instant results while you type
  • Private, in-browser
FAQ

Base64 Encode & Decode FAQ

It represents binary data as text so it can travel through systems that only handle text, such as JSON fields, email attachments, data URIs and HTTP headers.

No. It is reversible encoding with no secret key, so anyone can decode it. Never use it to protect sensitive data.

It replaces + with - and / with _ and drops = padding so the string can be used in URLs and tokens without escaping.

The input contains characters outside the Base64 alphabet or has the wrong length. Remove whitespace and line breaks, or switch URL-safe mode on or off.

Need help integrating APIs and data pipelines?

We build integrations between your apps, payment providers and internal systems.