Base64URL and may omit padding.How to use
Paste your string, then choose what you want to do.
- Paste Base64/Base64URL into the input box.
- Click Validate to check characters, length, and padding (missing padding is handled).
- Click Decode to decode to text; if it’s binary, you’ll get a hex preview.
- To encode, type plain text and click Encode, then optionally switch to Base64URL / remove padding.
FAQ
What’s the difference between Base64 and Base64URL?
Base64 uses + and /, while Base64URL uses - and _ to be URL-safe; Base64URL often omits = padding.
Is missing padding '=' always an error?
No. Many Base64URL strings omit padding; this tool treats missing padding as OK when it can be safely restored.
Why does decoding sometimes show “Binary data (not valid UTF-8)”?
Base64 can represent arbitrary bytes. If the decoded bytes aren’t valid UTF-8 text, the tool shows a hex preview instead.
Does this tool send my data to a server?
No. Validation/encoding/decoding runs locally in your browser.
Why is “mixed Base64 and Base64URL characters” invalid?
Using +// together with -/_ usually indicates a corrupted or incorrectly transformed string.
Can it handle whitespace and newlines in Base64?
Yes. The tool removes whitespace before validating/decoding, which is common for PEM blocks or wrapped output.
How do I convert Base64URL to standard Base64?
Run Validate to see the normalized standard Base64, or decode then re-encode without Base64URL output.