Step-by-step
- Paste the Base64 string into the tool and choose decode.
- Remove any prefix such as data:image/png;base64, if it is part of the pasted text.
- Check the result. If it is binary data such as an image, it will not look like readable text.
- If decoding fails, check for spaces, line breaks and characters outside A to Z, a to z, 0 to 9, + and /.
- If the string uses - and _ instead of + and /, it is URL-safe Base64 and needs to be converted first.
Why decoding fails
The usual causes are characters that are not part of the Base64 alphabet, a string that was cut short, or missing padding. Some decoders require the length to be a multiple of four, so add = characters at the end until it is.
Readable text or random symbols
If the decoded text shows strange characters, the original text probably used UTF-8 and was read with a different encoding. If the result is binary, such as a PDF or image, it is not meant to be read as text.
Decoding is not a security check
Anyone can decode Base64. If you find a password or token in Base64, treat it as exposed in plain text.
Finish the task with DevUtilityKits
Use the relevant online utility, check the result, and continue with your development workflow.
Open Base64 Encoder and Decoder →