Base64 Decoder

Decode Base64, URL-safe Base64, Base32, and Hex encoded data instantly. Our smart detector identifies the format automatically.

Decode Base64 to Text
Smart format detection enabled
Input (Base64/Encoded) 0 chars
Output (Decoded) 0 chars
Decoded output will appear here…
Try Encode

Why Use Our Base64 Decoder?

  • Smart Auto-Detection: Not sure what the format is? No problem. We have all those different types of Base64, URL-safe, Base32, and Hex Detection built into the intelligent detector.
  • 100% Private & Secure: All decryption is performed in your browser. No data is ever downloaded or saved anywhere.
  • Instant Results: Get your decoded text in milliseconds. No waiting, no loading screen, no server round trips.
  • Handles Complex Data: Decode anything from JSON payloads to API responses, data URLs, authentication headers, and more, with ease.
  • Multiple Formats: Base64, Base64 URL safe, Base32, and Hex support. Solve any type of code you encounter.
  • Error Handling: Display error messages if decoding is unsuccessful. Have a clear understanding of what went wrong and what to do to right it.

Common Encoding Examples

Base64 Standard
SGVsbG8gV29ybGQh
Hello World!
URL-Safe Base64
SGVsbG8tV29ybGQh
Hello-World!
JSON Data
eyJ1c2VyIjoiQWxleCIsImFnZSI6MzB9
{“user”:”Alex”,”age”:30}
Basic Auth Header
YWRtaW46cGFzc3dvcmQ=
admin:password
Hexadecimal
48 65 6c 6c 6f
Hello

How to Decode Base64

  1. Paste your encoded text: Take the Base64, URL-safe Base64, Base32 or Hex string and enter it into the input box on the left.
  2. Auto-Detection (Recommended): Set the format to “Auto” and our intelligent detector will determine your encoding format automatically.
  3. Click Decode: To get the results instantly, click the “Decode” button, or enable the option “Auto-decode on paste”.
  4. Get Your Plain Text: The text that is being decoded will instantly appear. Copy it with a single click or include it as is into your application.

What is Base64 Decoding?

Base64 decoding is the opposite of Base64 encoding. Decodes base64 encoded strings back to their binary or text form. This is crucial for APIs, data transfer or any system using Base64 encoding to send data.

When Do You Need Base64 Decoding?

The following are typical cases where you might need to decode a Base64 string:

  • API Development: Decode API responses, decode base64 encoded data in API responses, decode base64 encoded data from JSON payloads.
  • Parsing Basic Auth: Decode basic auth headers (e.g., Authorization: Basic YWRtaW46cGFzc3dvcmQ=)
  • Data URLs: Decode data URIs embedded in HTML: data:image/png;base64,iVBORw0…
  • JWT Tokens: Decode JSON Web Tokens (JWT) Payload Section.
  • Email: Decode Base64-encoded email attachments
  • Configuration: Load configuration from the encoding files or environment variables. What is the Decoding Process?

What is the Decoding Process?

Base64 decoding is the reverse of base64 encoding. Base64 characters contain 6 bits of data each. There are 4 Base64 characters and 3 bytes of original data. During decoding, padding characters (“=”) will be discarded as they are used for the purpose of making the encoded string length divisible by 4.

URL-Safe Base64 Decoding

The Base64 String is updated to be URL-safe by replacing + with -, and / with _ in the string. These substitutions are automatically done by our decoder in the “Auto” or “URL-Safe” mode.

Common Decoding Errors

If decoding doesn’t work, remember that there may be some common problems, such as:

  • Invalid characters: Base64 encoding should only contain characters within A-Z, a-z, 0-9, +, / (and – or _ for URL-safe).
  • Unrecognized padding: Base64 string must be 0 mod 4 (pad with “=” if necessary)
  • Wrong format selected: Make sure it is the input is actually Base64 and not some other encoding

Auto-Detection Feature

Our “Auto” detection mode identifies the encoding mode and automatically selects it. It checks for:

  • Standard Base64 patterns (A-Z, a-z, 0-9, +, /, =)
  • URL-safe Base64 patterns (A-Z, a-z, 0-9, -, _, no =)
  • Base32 patterns (A-Z, 2-7 only)
  • Any character from 0-9 and A-F along with optional spaces, can be used in hex pattern.

Related Tools You May Like

Calculators | Converters | Games | Generators | Random | Web Tools | Developer Tools