Request a tool
DEVELOPER TOOLS · FREE ONLINE TOOL

Base64 Encode/Decode

Encode text to Base64 or decode it back, with proper UTF-8 handlingAt some point almost every developer meets a wall of gibberish like eyJhbGciOi and needs to know what it hides. This converter reads and writes base64 in both directions: paste an encoded string to decode, or type text to encode.

✓ Free to use✓ No sign-up✓ Ready in your browser
// BASE64 ENCODE/DECODE · GET STARTED

Use Base64 Encode/Decode

Encode text to Base64 or decode it back, with proper UTF-8 handling

// BASE64 ENCODE/DECODE · HOW IT WORKS

How to use the Base64 Encode/Decode

01

Pick a mode

Choose Encode or Decode mode.

02

Paste input

Paste your text or Base64 string into the box.

03

Convert and copy

Click convert, then copy the result.

// BASE64 ENCODE/DECODE · ABOUT THIS TOOL

About the Base64 Encode/Decode

Base64 shows up everywhere in development: data URLs, auth headers, email MIME, JWTs and config blobs. This tool encodes and decodes both directions with proper UTF-8 handling, so emoji and non-Latin scripts come through intact.

Decoding is strict: invalid characters and bad padding produce a clear error instead of silent garbage. Everything runs locally in your browser, so your data never touches a server.

Where it helps most

Why it earns its bookmark.

Data URIs

Images and fonts embedded in stylesheets hide as base64 blobs; decoding one tells you exactly what is bundled in the CSS.

API auth headers

Basic authentication headers are username and password through the encoder; hand-building one is the standard way to test a protected API.

Email debugging

Email systems encode attachments and headers the same way, so a garbled message often becomes readable the moment you decode it.

JWT inspection

The middle segment of a JWT is base64url; decoding it reveals the claims in plain JSON.

Using it well

Know what it is and is not.

Encoding, not encryption

Anyone can decode base64 in seconds, so it must never be treated as a way to hide secrets.

Transport job

Its real job is keeping binary data intact across text-only systems like email, JSON bodies, XML and URLs.

Private decoding

Because conversion runs in your browser, a token with session data never leaves your machine.

Base64 Encode/Decode: private by design

The conversion runs entirely in your browser. Nothing is uploaded to a server, no signup needed.

// BASE64 ENCODE/DECODE · COMMON QUESTIONS

Base64 Encode/Decode FAQs

Base64 turns binary data into a plain ASCII text string so it can travel through systems that only handle text. You will find it in data URIs that embed images in CSS, Basic-auth headers, email attachments under MIME, XML documents carrying binary payloads, and the header and payload segments of JWT tokens.