Base64 decode

Base64 Decode & Base64 Encode Online

A free base64 decoder that turns a Base64 string back into readable text, or encodes text and small files, right in your browser.

Base64 decode and encodeStandard and URL-safe Base64Text and small files

How it works

How to Decode Base64 Online in 3 Simple Steps

No account and no install. Three steps cover most sessions.

  1. 01

    Paste or type your input

    To Base64 decode, paste the encoded string. To encode, type or paste plain text, or add a small file. Extra spaces and line breaks picked up while copying are cleaned out for you.

    Base64 converter with input field ready to paste encoded text or plain UTF-8
  2. 02

    Choose decode or encode

    Press Decode to get text back, or Encode to produce Base64. If your data uses - and _ instead of + and /, turn on URL-safe mode. It's a quick way to base64 decode online, and to decode base 64 online without installing anything.

    Base64 converter with decode or encode mode and URL-safe Base64 toggle
  3. 03

    Copy the result

    Copy the output into your code, ticket, or test. Decoded text that turns out to be JSON reads better in the JSON Formatter. If the string came from a token, the JWT Decoder reads the whole thing at once.

    Base64 converter output with decoded text and copy button

Features

What this Base64 decode and encode tool includes

Decode, encode, and convert in one private box.

  • 01

    Instant decode

    Paste a string and read the text at once. A fast base64decoder for tokens, headers, and API fields, with Base64 decode online speed and no setup.

  • 02

    One-click encode

    Turn text into Base64 for Basic auth headers, data URLs, and test fixtures. A reliable b64 encode without opening a console.

  • 03

    URL-safe Base64

    Handles the web-safe variant that swaps + and / for - and _, common in JWTs and links.

  • 04

    Text and small files

    Encode a small file or decode a string back to text. A practical base 64 converter for quick jobs.

  • 05

    Unicode support

    Non-English characters and emoji come back correctly instead of as garbled symbols.

  • 06

    Clear errors

    Bad characters or wrong padding are called out, so you can fix the copy fast.

  • 07

    Swap and verify

    Move the output back into the input to confirm a round trip.

  • 08

    Readable output

    Works like a base64 translator: encoded data on one side, readable text on the other, with a b64 decode in a single click.

  • 09

    Private by design

    Base64 decode and encode both run in your browser. Nothing is uploaded, stored, or logged.

Examples

Base64 decode and encode examples

Two quick cases. Together they make a base64 encode decode online round trip you can paste straight into the editor.

01

Base64 decode a string to text

A Base64 string looks random but decodes cleanly.

Before
SGVsbG8sIEFzaGEhIFdlbGNvbWUgYmFjay4=
After
Hello, Asha! Welcome back.
02

Base64 encode text for an auth header

Basic authentication joins a username and password with a colon, then encodes the result.

Before
demo:letmein
After
ZGVtbzpsZXRtZWlu

Sent in a header, it looks like this:
Authorization: Basic ZGVtbzpsZXRtZWlu

Reference

Standard and URL-safe Base64 examples

Use these as a quick reference. Switch between the two tabs below.

Standard vs. URL-safe

Both variants encode the same text. Only a couple of characters differ.

  • StandardExtra characters: + and / · Padding: = kept · Example for price>5?ok: cHJpY2U+NT9vaw==
  • URL-safeExtra characters: - and _ · Padding: Often dropped · Example for price>5?ok: cHJpY2U-NT9vaw

Context

Where you will meet Base64, and what to do with it

You rarely choose Base64. It shows up inside other things. A few common places, and what to do with each base 64 string:

  • JWT segments

    The header and payload are URL-safe Base64 of JSON. Base64 decode the first two parts, or open the whole token in the JWT Decoder.

  • Basic auth headers

    The part after Basic is Base64 of username:password.

  • Data URLs

    Small images embedded in HTML or CSS often hold Base64 code after the comma.

  • Email attachments

    Mail systems encode files so they can travel as text.

  • API fields

    Some services return files or binary blobs as Base64 strings.

Base64 decode and encode workspace with input, output, URL-safe mode, and file drop zone
Decode and encode in one private box for tokens, headers, and small files.

Audience

Who this Base64 decode tool is for

Developers and technical teams who meet encoded strings every day.

  • Frontend and full-stack developers

    Decode API fields and data URLs without opening a console. If your habit is calling decode64 or atob, this is the no-code version.

  • Backend and DevOps engineers

    Read encoded config values, environment variables, and Kubernetes secret values. A base64decoder saves a trip to the terminal.

  • Security and QA teams

    Inspect encoded values in requests, and pair it with the [SHA256 Hash tool](/tools/hash-generator/) when you're comparing checksums.

  • Support and technical writers

    Turn a mystery string from a log into text you can quote in a ticket or doc.

Use cases

What you can finish faster

Tasks that take seconds here instead of minutes at a terminal.

  • Outcome

    Read an encoded API field

    Paste, Base64 decode, then send the result to the JSON Formatter if it's JSON.

  • Outcome

    Check a Basic auth header

    Decode the part after Basic to confirm the username.

  • Outcome

    Read a Kubernetes secret

    Enter the value to instantly view its content in readable plain text.

  • Outcome

    Inspect a data URL

    Decode the part after the comma to see what's inside.

  • Outcome

    Encode a test fixture

    A quick b64 encode gives you a sample value for tests and docs.

  • Outcome

    Skip the code

    Instead of writing base64decode, decode64, or 64decode calls just to peek at a value, paste it and read it.

  • Outcome

    Compare two encoded values

    Decode both, then run them through the JSON Differ.

Good to know

Know the boundaries before you share the result

Base64 is a format, not a lock. Keep these points in mind.

  • Encoding is not encryption

    Anyone can reverse Base64. If you're looking to decrypt Base64 online, you usually just need to decode it. Real encryption needs a key and a different tool.

  • "Base64 encrypted" data is two layers

    If a value is described as base64 encrypted, it is typically encrypted data that was then Base64-encoded. Decoding gives you the encrypted bytes, not the original text.

  • Output can be binary

    Decoding a file or image won't look like readable text. That's expected.

  • Size grows

    Base64 makes data about a third larger, so it isn't a way to compress anything.

  • Large inputs

    Very big strings depend on your device's memory. If the tab slows down, work with a smaller piece.

Why this tool

Why teams keep this Base64 decode tool open

A tab that stays open all day has to be fast, quiet, and trustworthy.

  • Both ways

    Both directions in one box

    No switching between pages to Base64 decode and then encode.

  • URL-safe

    URL-safe aware

    JWT-style strings decode without manual character swaps.

  • Files

    Text and small files

    Encode a local file or decode a string back to readable text without uploading anything.

  • Unicode

    Unicode comes through clean

    Non-English text and emoji round-trip correctly instead of turning into garbled symbols.

  • Errors

    Clear errors, not silent junk

    Bad padding or broken characters surface as plain messages so you know what to fix.

  • Privacy

    A base64 translator that stays private

    Your input never leaves the page.

Runtime

100% client-side

Account

No sign-up required

Modes

Decode · Encode · URL-safe

Comparison

Base64 decode online alternatives

Plenty of pages offer to decode base 64 online, and terminal commands or code snippets work too. Compare what matters: privacy, URL-safe support, and how much typing the job takes. If you want a base64 encode online option that doesn't send your input to a server, or you need to decrypt Base64 online and want to know whether decoding is enough, check these points rather than looks alone.

Capability

This base64 decode

Typical online page
Terminal or code
  • Decode and encode in one box
    ✓
    Varies
    ✗
  • URL-safe support
    ✓
    Varies
    Manual
  • Runs in your browser
    ✓
    Varies
    ✓
  • Clear error messages
    ✓
    Rare
    ✗
  • Handles small files
    ✓
    Varies
    Manual
  • No install or sign-up
    ✓
    ✓
    ✗

Want a base64decoder you can open and use without leaving anything behind? This one is built for that.

Try Base64 Decode

Privacy

Your data stays on this device

Encode and decode Base64 strings directly in your browser without sending data to an external server. We don't upload your input or keep a copy. That makes it safe for tokens, internal API data, and configuration values you wouldn't paste into a random website. If a decoded string turns out to be a token, the JWT Decoder follows the same local-only approach.

Base64 decode questions

Base64 decoding transforms an encoded string back into its original readable text or binary data. It reverses Base64 encoding, which turns data into safe printable characters. People search for it under many names, such as 64 base, 64 bit decode, base decode, or even a misspelling like decode bas64, but the job is the same.

Open to freelance & collaborationIndia

Start a project

Let's Build Something Great Together

Have a project, product idea or development challenge? Let's discuss how I can help turn it into a reliable, scalable web application.

~/hire-jay

$

Usually replies within 24 hours

What brings you here?