How to use the Base64 to Text tool
- Paste the Base64 string into the input box. A full data URL such as data:text/plain;base64,… also works.
- Select Decode. Spaces and line breaks in the input are ignored.
- Read the decoded UTF-8 text in the Result box.
- Select Copy to put the text on your clipboard, or Clear to start again.
What Base64 decoding does
Base64 writes binary data with 64 printable characters: A–Z, a–z, 0–9, plus and slash. Every character carries 6 bits, so four characters hold three bytes. Decoding reverses that mapping: the decoder looks up each character's 6-bit value, joins the bits and cuts them back into 8-bit bytes.
Those bytes are not text yet. This tool then reads them as UTF-8, the encoding used by almost every modern API, web page and config file. That second step is why the same Base64 string can decode to clean text in one tool and to garbled characters in another that assumes a different character set.
A worked example
Take the string SGVsbG8sIHdvcmxkIQ==. The first four characters S, G, V and s have the values 18, 6, 21 and 44. Written as 6-bit groups they are 010010 000110 010101 101100, which regroup into the bytes 72, 101 and 108, or "Hel". The remaining groups decode the same way.
The two equals signs at the end are padding. They say the last group carries one byte, not three.
SGVsbG8sIHdvcmxkIQ== → Hello, world!Input formats this decoder accepts
You can paste Base64 the way it appears in logs, headers and source files without cleaning it first.
- Standard Base64 from RFC 4648, with + and /.
- Base64URL with - and _, as used in JWTs and URL parameters. The tool detects it from those characters.
- Strings without = padding, which many URL-safe encoders leave out.
- MIME or PEM style input wrapped across several lines.
- Data URLs. Everything up to and including base64, is removed before decoding.
Why decoding can fail
The decoder is strict, so a truncated or damaged value produces an error message, not a wrong answer. These are the usual causes.
- A character outside the alphabet, such as a quote, backslash or percent sign left over from JSON or URL escaping.
- A length that cannot be valid. One leftover character after the last full group of four can never form a byte.
- Mixed alphabets, for example + together with _ in one string.
- Bytes that are not valid UTF-8. The data is probably an image, archive or other binary file. Use Base64 to File or Base64 to Hex for those.
Where Base64 text shows up
Developers meet Base64 text in HTTP Basic Authorization headers, JWT header and payload segments, Kubernetes Secret manifests, email bodies sent as MIME, data URLs in CSS and HTML, and API fields that carry text through systems limited to ASCII.
Base64 is an encoding. It hides nothing: anyone can decode it without a key. Treat a Base64 password or token exactly as you would the plain value.
Frequently asked questions
Is my Base64 string uploaded to a server?
No. The page decodes the string with JavaScript in your browser. Nothing you paste is sent over the network.
Why is the decoded text unreadable?
The original data was probably not UTF-8 text. Compressed data, images and encrypted values are binary, so they do not decode to readable characters. Try Base64 to Hex to inspect the bytes, or Base64 to File to download them.
Can I decode Base64 without the = padding?
Yes. Padding only tells the decoder how many bytes are in the last group, and that can be worked out from the length. Strings without padding decode normally.
What is the difference between Base64 and Base64URL?
Base64URL replaces + with - and / with _, and usually omits padding, so the value is safe in URLs and file names. Both variants carry the same data, and this tool decodes either one.
Does Base64 encrypt my data?
No. Base64 is a reversible encoding with no key. It makes binary data safe to transport as text and provides no confidentiality.
How large is Base64 compared with the original text?
Encoded data is about 33% larger, because every three bytes become four characters. Decoding returns the data to its original size.