Base64 Encode & Decode

Encode or decode Base64 and URL-safe Base64, including emoji and non-Latin text. Convert small files to Base64 or build an HTTP Basic Authorization header.

  • Free
  • No sign-up
  • Runs in your browser

Base64


    

HTTP Basic Authorization header


    
  

How to use the Base64 Encoder / Decoder

  1. Choose Encode or Decode.
  2. Paste text, or pick a file to encode.
  3. Turn on URL-safe mode for JWTs and URL parameters.
  4. Copy the result.

Monitor what your code does after it ships

Send events to SensaCat’s ingest API and get alerted when jobs, webhooks and multi-step flows stall.

Start monitoring free

Frequently asked questions

No. Base64 is a reversible encoding that anyone can decode. It makes binary data safe to put in text formats; it doesn’t hide it.

A variant that replaces + with - and / with _, and often drops the = padding, so the value can be used in URLs and file names. JWTs use it.

Base64 turns every 3 bytes into 4 characters, so encoded data is about 33% larger than the original.

The client sends Authorization: Basic followed by the Base64 encoding of username:password. Because anyone can decode it, only use Basic authentication over HTTPS.

Related tools

JWT Decoder

Read a JWT’s header and claims, check expiry and verify HMAC signatures locally.

Runs in your browser Open tool

JSON Formatter

Pretty-print, minify and validate JSON with exact line and column errors.

Runs in your browser Open tool

Webhook Signature Verifier

Check an HMAC webhook signature for Stripe, GitHub, Shopify, Slack or your own scheme.

Runs in your browser Open tool