hero background

Base64 Decoder

Use this free online Base64 Decoder to decode your base64 encoded into its original form. Fast, secure, and easy to use. No registration or installation required.

Convert your Base64 string to its original form

How to use it:

  • Enter your string

    Input or paste the string you want to decode into the input field.

  • Decode

    Click the "Decode" button to convert the string

  • Get the result

    Copy the Base64-decoded result for use in your project.

This tool ensures quick and reliable Base64 decoding, making it a must-have utility for developers working with data serialization, APIs, or web applications.

Base64 Decoder - Convert Base64 encoded strings to the original form instantly

Base64 decode

The Base64 Decoder is a simple and efficient online tool that converts base64 encoded strings into its not encoded form (the original one). Base64 decoding is commonly used to decode data after a transmittion in formats that require text-based representations, such as JSON, XML, or URL parameters.

How Decoding Works

Base64 decoding reverses the encoding process, converting the encoded ASCII characters back into their original binary form. This ensures that the original data can be accurately retrieved after transmission through text-based protocols. The decoding process follows these fundamental principles:

  • It maps each encoded character back to its corresponding binary value based on the predefined Base64 table.
  • The decoded output reconstructs the original data by grouping bits together in their original form.
  • Padding characters (=) at the end of the encoded string are removed to correctly restore the original data size.
  • The result is a faithful restoration of the raw input, making it usable in its intended format.

Af per the encoding process, different implementations are possible. As an example "RFC 4648" defines the characters set as only letters (A-Z, a-z) and numbers (0-9) for the first 62 characters, and plus (+) and slash (/) symbols as last 2 characters - padding equal symbol (=) is used when necessary. "RFC 4648 / Base64URL" variant differs from the previous one for the last 2 character. It uses minus (-) and underscore (_) as they are URL safe.

Common Use Cases

  • Data Transmission & Storage
    • Ensures safe transmission of binary data over text-based protocols like email (MIME) and HTTP.
    • Stores binary files (e.g., images, PDFs) as text in JSON, XML, or databases.
  • Encoding Credentials & Tokens
    • Used in Basic Authentication headers (Authorization: Basic <Base64-encoded credentials>).
    • Encodes API keys, session tokens, and other authentication-related data.
  • Embedding Binary Data in Text-Based Formats
    • Converts images, audio, or documents into a text format for inclusion in HTML, CSS, or JavaScript.
    • Used in Data URLs (data:image/png;base64,...) to embed media directly in web pages.
  • Serialization & Data Persistence
    • Stores binary data in text-friendly formats when serializing data in JSON, YAML, or XML.
    • Helps when transferring structured data across different systems.
  • Cryptography & Hashing
    • Encodes cryptographic signatures, certificates, and keys (e.g., PEM format for SSL certificates).
    • Stores and transmits hashed or encrypted data safely.
  • Avoiding Special Character Issues
    • Ensures safe encoding of binary or special characters that might get corrupted in URLs, cookies, or command-line arguments.
    • Prevents character encoding issues in legacy systems or different text encodings.

While Base64 is useful for encoding and transmission, it's not encryption—it provides no security and can be easily reversed through decoding.

The conversion process (decoding)

To convert a Base64 encoded string into its original format we need to follow the opposite process used for the encoding. The process' steps are the following and represent the Base64 decoding algorithm:

  1. Convert each Base64 character into its corresponding index from the Base64 table
    For example T is 19 and m is 38
  2. Convert each index into its 6-bit binary equivalent
    19 → 010011, 38 → 100110
  3. Concatenate all 6-bit binary sequences and regroup them into 8-bit chunks (bytes)
  4. Convert each 8-bit binary sequence into its ASCII character representation to reconstruct the original data.

Let's have a pratical example.

We want to decode "RmF0aGVy" from Base64.
Encoded string RmF0aGVy
Base64 characters R m F 0 a G V y
Index 17 38 5 52 26 6 21 50
Binary 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 0 0 0 0 1 1 0 0 1 0 1 0 1 1 1 0 0 1 0
ASCII 70 97 116 104 101 114
Original F a t h e r
Obtaining the "Father" string.

To have a better understanding of the Base64 encoding and decoding processes, you can check our Base64 Encoder tool documentation where we explain in detail how the encoding process works and we provide a pratical example.

To have a look at the Base64 character set, you can check the RFC 4648 Base64 Table page of our documentation where we provide a table with all the characters used in the encoding process and their corresponding index.