Skip to main content
GARGLOO

Base64 Encoder & Decoder Online – Free

UTF-8-correct Base64, both directions.

Runs on your device

At a glance

Input:
Text / data you paste
Processing:
Runs locally in your browser
Privacy:
Nothing you type is sent to a server

Last updated: 2026-10-03

Common use cases

  • Encoding an SVG snippet into a data URI for CSS
  • Decoding a JWT payload segment to inspect its claims
  • Preparing binary-safe text for an API that accepts Base64
  • Checking what an opaque encoded string actually contains

About this tool

Bidirectional Base64 with correct UTF-8 handling, whitespace-tolerant decoding and optional URL-safe alphabet.

How to use it

  1. Paste text or Base64.
  2. Direction auto-detects; override if needed.
  3. Copy the converted output.

Practical tips

  • Flip the URL-safe toggle before copying tokens into query strings — standard + and / break URLs without extra escaping. The toggle affects encoding only; decoding already accepts both alphabets.
  • When decoding fails, force Decode mode: auto-detect encodes anything with spaces or prose punctuation.
  • Paste encoded blobs with line breaks intact — whitespace is stripped before decoding.

Common mistakes

  • Treating Base64 as encryption and sharing secrets encoded — anyone decodes it in seconds.
  • Decoding binary files (images, zips) as text — non-UTF-8 bytes show as replacement characters, which is expected.
  • Forgetting padding when hand-editing encoded strings — the decoder re-pads automatically, but truncated data still fails.

How this compares

Terminal commands encode locally but fumble Unicode and need flags memorized. Paste-bin converters upload your payload. This tool auto-detects direction, handles emoji via UTF-8, and offers URL-safe output in the tab. The tradeoff: text only — binary files need a dedicated encoder, not a text box.

Good to know

  • Decoded output is interpreted as UTF-8 text; raw binary decodes show replacement characters.
  • URL-safe mode strips padding, so strict decoders elsewhere may need it re-added.
  • Very long inputs convert in full but render in a capped scroll box — copy the result rather than reading it there.

Frequently asked questions

Why do some tools break on emoji?

Naive btoa(unicode) throws on characters outside Latin-1. This tool encodes via UTF-8 first, so 🚀 and CJK text round-trip perfectly.

What's URL-safe Base64?

A variant using - and _ instead of + and / so encoded values survive inside URLs without extra escaping. Toggle it for JWT-style payloads.

Is Base64 encryption?

No — it's transparent encoding, not security. Never use it to protect secrets.

How does auto-detect choose a direction?

Input that looks like Base64 decodes; anything else encodes. Override with the Encode or Decode buttons when the guess is wrong, and use the URL-safe toggle for JWT-style output. Pasted text with line breaks still decodes, since whitespace is stripped first. When a decode fails on prose, switch to Encode and compare.

All developer tools
Base64 Encoder & Decoder Online – Free | GARGLOO