Base64 and URL Encoder
Encode and decode Base64, Base64URL, and URL percent-encoding in your browser, with full UTF-8 support.
Type in either box. The other one updates.
About this tool
Base64 is used in Basic auth headers, data URLs, and email attachments. Base64URL replaces + and / with - and _ and drops padding, so it is safe in URLs and JWTs.
URL encoding escapes characters that have a meaning in URLs. Component mode escapes everything except letters, digits, and - _ . ! ~ * ' ( ), which is right for query parameter values.
Runs entirely in your browser. Nothing you enter or open is uploaded.
Questions
- Why does my decoded text look garbled?
- The input was probably binary data, such as an image, rather than UTF-8 text.
- What is the difference between URL component and full URL encoding?
- Full URL mode keeps characters such as : / ? & = so a whole address stays usable. Component mode escapes them, for use inside one parameter.