You are reading an API response, a config file or an email header, and a value stares back at you as a block of letters, digits and a couple of equals signs: SGVsbG8sIFdvcmxkIQ==. It is not broken, and it is not encrypted. It is Base64, a way of carrying data through channels that only handle plain text, and decoding it takes seconds once you know what you are looking at.

This guide shows how to decode a Base64 string with the free Base64 Text Encoder/Decoder on Ovatly, how to read the padding at the end of a string, and where the honest limits sit. The most important one comes first: Base64 hides nothing. Anyone who sees the string can decode it with the same tool you are about to use.

Contents

  • Quick answer
  • What Base64 is actually for
  • How to read a Base64 string
  • How to decode a Base64 string, step by step
  • Worked example: two strings decoded
  • Limitations and honest warnings
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

To decode a Base64 string, open the Base64 Text Encoder/Decoder, paste the string, and press Decode from Base64. The tool accepts standard Base64 and the URL-safe variant, with or without padding, and shows a validation error if the input is not real Base64 or does not decode to UTF-8 text. Decoding runs in your browser, and the tool is fully Unicode safe, so accented characters, emoji and non-Latin scripts come back exactly as they went in. Remember that Base64 is an encoding, not encryption: decoding needs no key and no permission, which is why it must never be used to protect secrets.

What Base64 is actually for

Some channels can only carry plain text safely: JSON documents, email, and data URIs are the examples the tool itself names. Raw bytes do not survive those channels reliably, because control characters and non-text bytes get mangled or rejected along the way. Base64 solves that transport problem by representing data using only letters, digits and a few safe symbols, so the result can travel anywhere text can travel.

That purpose explains both the shape of a Base64 string and its cost. Because the encoding uses a smaller alphabet than the raw data, the output is about a third larger than the input. That overhead is normal and expected; it is the price of making the data safe for text-only channels. It also explains why you meet Base64 in configuration values, embedded assets and token-like strings throughout development work.

How to read a Base64 string

Base64 works in groups of four characters. Each group represents a small fixed amount of the original data, which is why genuine Base64 strings have a length that is a multiple of four once padding is counted.

The equals signs at the end are padding. They mark how many bytes were in the final partial group, so a string can end with one = or two ==, or with none when the data happened to fill its last group exactly. Padding is bookkeeping, not content, and this decoder accepts strings with or without it, which matters because some systems strip it.

There is also a URL-safe variant of Base64. It swaps two of the standard characters for - and _, so the encoded text can sit inside a web address without clashing with characters that mean something there. This decoder accepts both the standard form and the URL-safe variant, so you do not need to convert a string by hand before pasting it.

How to decode a Base64 string, step by step

  1. Open the Base64 Text Encoder/Decoder.
  2. Paste the Base64 string into the box. The same tool works in both directions, so plain text and Base64 go in the same place.
  3. Press Decode from Base64.
  4. Read the result, or read the validation error. If the input is not real Base64, or it decodes to bytes that are not valid UTF-8 text, the tool says so instead of printing mojibake.
  5. Copy the result.

Worked example: two strings decoded

The tool's own example starts from the classic test string. Encoding "Hello, World!" gives:

SGVsbG8sIFdvcmxkIQ==

Paste that string back in and press Decode from Base64, and you get "Hello, World!" again. Note the two equals signs: the original text did not fill its final group of four characters, so padding marks the gap.

The second example shows the Unicode handling. The word "café" encodes to Y2Fmw6k=, with a single padding character this time, and decodes back to "café" exactly. The accented character survives the round trip because the tool is fully Unicode safe. A decoder that treats text as plain single-byte characters would corrupt that word; this one does not, and the same applies to emoji and non-Latin scripts.

Limitations and honest warnings

Base64 is an encoding, not encryption. That sentence is worth repeating because the mistake is common: an encoded password, key or personal detail is readable by anyone who sees it, instantly, with no key and no effort. Never use Base64 to protect secrets, and never treat an encoded value in a config file as hidden. Passwords belong in a proper hash like bcrypt, never in Base64.

This tool is for text. If the bytes behind a Base64 string are not valid UTF-8 text, the tool reports that instead of guessing, and binary data belongs in a file tool. Images are a separate job too: the Base64 Image Encoder in the Image Tools category produces a data URI for those.

Finally, expect the size overhead. Encoded output runs about a third larger than the input, so a long encoded block in a JSON payload or an email is normal, not a sign that something went wrong.

Common mistakes

  • Treating Base64 as a security measure. It is a transport format. Anything encoded is public to anyone who can see it.
  • Decoding binary data as text. A string that decodes to non-UTF-8 bytes produces an error here, correctly. Use a file tool for binary data.
  • Assuming a missing = means the string is broken. Padding marks the final partial group, and this decoder accepts strings with or without it.
  • Confusing the URL-safe variant with corruption. A string containing - and _ is usually the URL-safe variant, and the decoder accepts it as it is.
  • Trying to encode an image in the text tool. Use the Base64 Image Encoder in the Image Tools category, which is built for that and returns a data URI.

FAQs

Why does the output end with = signs? Base64 works in groups of four characters. The = signs are padding that mark how many bytes were in the final partial group.

Can I encode an image here? This tool is for text. For images, use the Base64 Image Encoder in the Image Tools category, which produces a data URI.

Is Base64 safe for passwords? No. It is instantly reversible by anyone. Passwords belong in a proper hash like bcrypt, never in Base64.

What happens if I paste something that is not real Base64? The tool shows a validation error. It also reports an error when the input decodes to bytes that are not valid UTF-8 text, instead of printing mojibake.

Does the decoder accept the URL-safe variant? Yes. Decoding accepts standard Base64 and the URL-safe variant (with - and _), with or without padding.

Conclusion

Decoding Base64 is a paste, a press and a read, and the Base64 Text Encoder/Decoder handles the standard and URL-safe variants, padding or no padding, and Unicode text without corrupting it. What it will never do is keep a secret, because that is not what the format is for. A close cousin worth knowing is percent-encoding, the other text-safe encoding you will meet inside web addresses, covered in How to URL Encode and Decode a String. For more tools like these, see the Developer Tools guide archive.