Base64, URL and HTML Encode / Decode
Encode or decode text as Base64, URL-safe Base64, URL, HTML entities or hexadecimal. It handles accents and emoji correctly (UTF-8).
How to use the base64, url and html encode / decode
- Choose the format.
- Paste your text and click Encode or Decode.
- Copy the result, or use Swap to move it back to the input.
Base64 is an encoding, not encryption: anyone can decode it. It turns bytes into plain letters so they can travel in places that only allow text, such as email, URLs and JSON. Use URL component encoding for a single value in a link, and full URL encoding for a whole address.
Frequently asked questions
Is Base64 secure?
No. It is only a way of writing data with safe characters. Never use it to hide passwords.
What is the difference between URL and URL component?
URL component encoding also escapes characters such as / ? & =, which is right for a value inside a link. Full URL encoding leaves them alone so the address still works.
Why does decoding fail?
The input may contain characters outside the format, a missing part of the data, or bytes that are not valid UTF-8 text.
