Skip to content
uencoder
TASK

Decode Base64 text and handle missing or corrupted padding

Decode Base64 payloads that arrive without trailing '=' padding or with URL-safe alphabet, and recover the original bytes safely.

  1. 1

    Base64 encodes every 3 bytes into 4 characters; when the input length is not a multiple of 3, padding '=' characters are added. Some APIs strip the padding or swap +/ for -_ (URL-safe alphabet). Decoding must restore both before processing.

  2. 2
    Base64 Decoder →

    Paste the Base64 string. If padding is missing the decoder auto-restores it; if the alphabet is URL-safe (- and _), toggle the variant option.

  3. 3
    base64-encode → base64-decode

    Run the round-trip chain to confirm your decode output re-encodes to the same input — this catches silent corruption from wrong alphabets.

  4. 4

    If the decoded bytes look like binary (not text), switch the output mode to hex or save to file via the base64-to-file tool to inspect the raw bytes.

Frequently asked questions

Why does my decoded text contain replacement characters?
The decoded bytes are likely not UTF-8 text. Try interpreting as Latin-1, or treat the output as binary and save to a file to inspect its actual content.
What is the difference between standard and URL-safe Base64?
Standard uses + and / with = padding; URL-safe replaces + with - and / with _, and often omits padding. Both encode the same bytes — only the alphabet differs.

Workflows that solve this

Convert Ascii85 to Base64
Decode Ascii85 and re-encode as Base64 for wider compatibility.
PIPELINE
Convert Base2048 to Base64
Decode Base2048 (emoji) and re-encode as Base64 for standard transport.
PIPELINE
Convert Base32 to Base64
Decode a Base32-encoded string into raw bytes and re-encode as Base64 for more compact representation.
PIPELINE
Convert Base58 to Base64
Decode Base58 and re-encode as Base64 for standard compatibility.
PIPELINE
Base64 encode then decode round-trip
Encode text to Base64 and decode it back to verify the round-trip preserves the original data.
PIPELINE
Convert Base64 to Base85
Decode Base64 and re-encode as Base85 for compact representation.
PIPELINE
Convert Base64 to Hex
Decode a Base64 string into raw bytes and re-encode it as hexadecimal for inspection or interop.
PIPELINE
Blowfish Encrypt then Base64
Blowfish encrypt then Base64-encode for text-safe transport.
PIPELINE
Decode a Basic Auth credential pair
Decode the Base64 portion of an HTTP Basic Authorization header into username:password.
PIPELINE
DES Encrypt then Base64
DES encrypt then Base64-encode for legacy compatibility.
PIPELINE
Encode a JSON payload for URL transport
Prepare a JSON document for a URL parameter: pretty-print, Base64-encode, then percent-encode — the exact inverse of the nested-parameter decode chain.
PIPELINE
AES encrypt then Base64 encode
Encrypt plaintext with AES and encode the ciphertext as Base64 for text-safe transport.
PIPELINE
Hash content and encode as Base64
Compute a hash of the input and encode the hash digest as Base64 for compact transport.
PIPELINE
Convert Hex to Base64
Decode a hexadecimal string into raw bytes and re-encode it as Base64 for compact transport.
PIPELINE
HMAC Sign then Base64 Encode
Generate HMAC signature then Base64-encode for API auth headers.
PIPELINE
Morse Encode and Base64 Transport
Encode text as Morse code then Base64-encode for digital transport.
PIPELINE
Decode and format a JWT payload
Parse a JWT token, extract its payload, and format the JSON for inspection.
PIPELINE
RC4 Encrypt then Base64
RC4 encrypt then Base64-encode for transport.
PIPELINE
RIPEMD-160 Hash then Base64
Compute RIPEMD-160 hash then Base64-encode for transport.
PIPELINE
Shuffle Text and Base64 Encode
Shuffle text characters then Base64-encode the result.
PIPELINE
Unicode Escape and Base64 Encode
Unicode-escape text then Base64-encode for ASCII-safe transport.
PIPELINE
URL Encode then Base64 Double Encode
URL-encode then Base64-encode for double encoding in API payloads.
PIPELINE
Decode nested URL parameter (Base64 JSON)
Unwrap a URL parameter that carries URL-encoded Base64 JSON into readable, formatted JSON.
PIPELINE
UUencode then Base64
UUencode text then Base64-encode the result for double encoding.
PIPELINE
Generate UUID and Base64 Encode
Generate a UUID then Base64-encode it for compact storage.
PIPELINE

Learn more

Want to understand why?

Related tools