Base64 Encode / Decode
About this tool
HTTP Basic and some webhooks wrap text in Base64. Decode it locally instead of pasting secrets into a random site. This page is for text. Data URLs for pictures belong on image Base64.
Features
- Text to Base64 and back
- UTF-8 so non-ASCII does not turn into mojibake
- Invalid input fails instead of being silently rewritten
How to use
- Paste plain text or a Base64 string.
- Encode or decode.
- Copy the result; if decode fails, check padding and stray newlines.
- Use image Base64 for pictures, not this page.
When to use it
- Reading the blob after Authorization: Basic
- A webhook wrapped JSON in Base64
- A short string must be stored as Base64 in config
Examples
- hello encodes to aGVsbG8=.
- YWRtaW46c2VjcmV0 decodes to admin:secret — a Basic-auth teaching sample, not a password you should paste on the public web.
FAQ
Is Base64 encryption?
No. Anyone can decode it. It is an encoding, not a password hash.
Can I decode files or images?
This page is text. Use image Base64 for Data URLs.
Why did decode fail?
The string is not valid Base64, padding is missing, or extra characters got in.
URL-safe Base64?
Standard Base64 uses + and /. The URL variant often uses - and _. Check the alphabet if results look wrong.
Is my input uploaded?
No. Encoding stays in the browser.
Should I decode JWTs here?
JWT parts are Base64URL. Use the JWT decoder so you do not split the three segments by hand.
Back to Encoding Tools Hub
Guides