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 decode
A free base64 decoder that turns a Base64 string back into readable text, or encodes text and small files, right in your browser.
How it works
No account and no install. Three steps cover most sessions.
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.

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.

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.

Features
Decode, encode, and convert in one private box.
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.
Turn text into Base64 for Basic auth headers, data URLs, and test fixtures. A reliable b64 encode without opening a console.
Handles the web-safe variant that swaps + and / for - and _, common in JWTs and links.
Encode a small file or decode a string back to text. A practical base 64 converter for quick jobs.
Non-English characters and emoji come back correctly instead of as garbled symbols.
Bad characters or wrong padding are called out, so you can fix the copy fast.
Move the output back into the input to confirm a round trip.
Works like a base64 translator: encoded data on one side, readable text on the other, with a b64 decode in a single click.
Base64 decode and encode both run in your browser. Nothing is uploaded, stored, or logged.
Examples
Two quick cases. Together they make a base64 encode decode online round trip you can paste straight into the editor.
A Base64 string looks random but decodes cleanly.
SGVsbG8sIEFzaGEhIFdlbGNvbWUgYmFjay4=Hello, Asha! Welcome back.Basic authentication joins a username and password with a colon, then encodes the result.
demo:letmeinZGVtbzpsZXRtZWlu
Sent in a header, it looks like this:
Authorization: Basic ZGVtbzpsZXRtZWluReference
Use these as a quick reference. Switch between the two tabs below.
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-NT9vawContext
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.

Audience
Developers and technical teams who meet encoded strings every day.
Decode API fields and data URLs without opening a console. If your habit is calling decode64 or atob, this is the no-code version.
Read encoded config values, environment variables, and Kubernetes secret values. A base64decoder saves a trip to the terminal.
Inspect encoded values in requests, and pair it with the [SHA256 Hash tool](/tools/hash-generator/) when you're comparing checksums.
Turn a mystery string from a log into text you can quote in a ticket or doc.
Use cases
Tasks that take seconds here instead of minutes at a terminal.
Paste, Base64 decode, then send the result to the JSON Formatter if it's JSON.
Decode the part after Basic to confirm the username.
Enter the value to instantly view its content in readable plain text.
Decode the part after the comma to see what's inside.
A quick b64 encode gives you a sample value for tests and docs.
Instead of writing base64decode, decode64, or 64decode calls just to peek at a value, paste it and read it.
Good to know
Base64 is a format, not a lock. Keep these points in mind.
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.
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.
Decoding a file or image won't look like readable text. That's expected.
Base64 makes data about a third larger, so it isn't a way to compress anything.
Very big strings depend on your device's memory. If the tab slows down, work with a smaller piece.
Why this tool
A tab that stays open all day has to be fast, quiet, and trustworthy.
No switching between pages to Base64 decode and then encode.
JWT-style strings decode without manual character swaps.
Encode a local file or decode a string back to readable text without uploading anything.
Non-English text and emoji round-trip correctly instead of turning into garbled symbols.
Bad padding or broken characters surface as plain messages so you know what to fix.
Your input never leaves the page.
Runtime
100% client-side
Account
No sign-up required
Modes
Decode · Encode · URL-safe
Comparison
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.
This base64 decode
Want a base64decoder you can open and use without leaving anything behind? This one is built for that.
Try Base64 DecodePrivacy
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.
Start a project
Have a project, product idea or development challenge? Let's discuss how I can help turn it into a reliable, scalable web application.
$
Usually replies within 24 hours
What brings you here?