SEOLyzerPro

100% Free forever - No account required

Use 47 free online tools: meta tag and robots.txt generators, image and text tools, JSON converters, calculators and unit converters. No signup needed

Base64 Decode

Convert Base64 back to readable text

Base64 Decode

What this tool does

The Base64 Decode tool turns a Base64 string back into its original text. Paste the encoded string, click Decode, and the tool shows what it contains. It is useful when you meet a string such as “SGVsbG8gV29ybGQ=” in an API response, a configuration file, an email header, a web address or a block of code, and you want to read it.

How to use it

  1. Paste the Base64 string into the input box.
  2. Click Decode.
  3. Read the result. Use Reset to start again.

Worked examples

Base64 Decoded result
SGVsbG8= Hello
SGVsbG8gV29ybGQ= Hello World
SGVsbG8sIFdvcmxkIQ== Hello, World!
dXNlcjpwYXNz user:pass
Y2Fmw6k= café

For “SGVsbG8gV29ybGQ=”, the tool turns each character back into its 6-bit value, joins the bits, and splits them into 8-bit bytes. The bytes 72, 101, 108, 108, 111, 32, 87, 111, 114, 108 and 100 spell “Hello World”.

How decoding works

Decoding is the reverse of encoding. Every Base64 character stands for a number from 0 to 63. The tool writes each number as six bits, joins all the bits together, ignores the equals-sign padding, and then cuts the bit string into groups of eight to make bytes. Finally it reads those bytes as text, normally using the UTF-8 character set.

Reading a JWT (an example from real life)

Web login systems often use tokens called JSON Web Tokens (JWT). A JWT has three parts, separated by dots. The first two parts are Base64URL-encoded JSON. A typical first part is eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9, which decodes to {"alg":"HS256","typ":"JWT"}. The second part holds the claims, such as a user ID and an expiry time. This shows something important: the contents of a JWT can be read by anyone who has the token, because they are encoded, not encrypted. The third part is a signature that proves the token was not changed. Do not paste a real, live token into any online tool, because anyone who sees it could use it to sign in as you.

Why decoding sometimes fails

Problem Typical cause What to try
“Invalid character” Spaces, quotation marks, or characters that are not in the Base64 alphabet Remove extra characters, and copy only the encoded part
Wrong length or padding error Part of the string was lost when copying, or the padding was removed Check that you copied everything, and add = signs until the length is a multiple of four
Strange symbols in the result The data is not text, for example an image or a file Use a tool that decodes files, or save the result as a file instead
Text such as “café” The text was decoded with the wrong character set Decode as UTF-8
Nothing readable The string may be encrypted or compressed first, not just encoded Base64 alone cannot unlock it

If the string contains the hyphen (-) or underscore (_), it is probably URL-safe Base64. Replace - with + and _ with / before decoding, or use a tool that supports the URL-safe variant.

Line breaks inside Base64

Some systems, especially email, split Base64 into lines of about 76 characters. A decoder normally ignores these breaks. If your tool reports an error on a multi-line string, join the lines first with the Remove Line Breaks tool.

Where you may meet Base64

  • API responses that carry a small file or an image as text.
  • Data URIs in web pages, which start with data:image/png;base64,. Remove that first part and decode only what follows the comma.
  • Email source code, where attachments are stored as Base64.
  • Configuration files and environment settings.
  • HTTP Basic authentication headers, which contain “username:password” in Base64.
  • Certificates and keys saved in text format.

Decoded does not mean safe

Decoding only reveals what was hidden by the encoding. Attackers sometimes hide harmful links, scripts or commands in Base64, because it makes them hard to read at a glance. If you decode something from an unknown source, treat the result as untrusted. Do not run decoded scripts or commands, do not open decoded files unless you know what they are, and be careful with links in decoded text. Reading the text in a decoder is safe, but running it is not.

Tips

  • Decode only the Base64 part, not the surrounding text.
  • If a result looks like gibberish, it may be binary data, not text.
  • Keep your original encoded string, in case you need to check it again.
  • Do not enter passwords, private keys, access tokens or personal data into any online tool.
  • For sensitive work, use a decoder on your own device.

Privacy

“Decoding happens in your browser and the text you enter is not sent to our server.” Decoded content may include private information, so avoid pasting data that you would not want others to see.

Limits of this tool

The tool reverses Base64 encoding and nothing more. It does not decrypt protected data, repair damaged strings or tell you whether the decoded content is safe. Large inputs may be slow in older browsers, and binary results may not display as readable text.

Frequently asked questions

Can I decode a Base64 string without a key?
Yes. Base64 needs no key, because it is not encryption.

Why does my decoded text look like random symbols?
The data may be binary, such as an image, or it may have been encoded with a different character set.

Can I decode an image?
Only with a tool that supports files. A plain text decoder shows binary data as unreadable symbols.

What does the equals sign at the end mean?
It is padding added to make the length a multiple of four.

Is it safe to decode a string from an email?
Decoding to read it is safe, but do not run or open what you find unless you trust the source.

Related tools

Base64 Encode, URL Encode, JSON Formatter, Remove Line Breaks, Text Compare and Password Generator.