Why Is URL Encoding (Percent-Encoding) Necessary?
Uniform Resource Locators (URLs) may only be transmitted over the internet using the standard ASCII character-set. When a URL contains characters outside the ASCII set (such as spaces, ampersands, or non-English characters), those characters must be converted into a valid ASCII format via percent-encoding (% followed by a two-digit hexadecimal representation).
Key Differences: Component vs Full URI
- encodeURIComponent: Encodes almost all special punctuation (e.g.
/becomes%2F,?becomes%3F, and&becomes%26). Perfect for individual query string parameters like?name=John%20Doe. - encodeURI: Intended for complete addresses. It preserves protocol markers (
http://) and path separators (/), only encoding spaces and invalid unicode symbols. - Base64 URL: Converts raw strings into standard web-safe Base64 strings, often used in JSON Web Tokens (JWT) and web APIs.
Frequently Asked Questions
%20. In traditional HTML form submissions (application/x-www-form-urlencoded), a space may also be represented by a plus sign (+).
%2 instead of %20), our tool will warn you with a malformed URI notice.
What is the URL Encoder & Decoder?
Quickly encode or decode URLs and query parameters online for free. Supports encodeURI, encodeURIComponent, and Base64 URL mode with instant copy.
What can you use it for?
Use it to prepare a query parameter, decode a percent-encoded address, or compare whole-URI and component encoding.
How does it work?
Paste the text and choose an encoding or decoding mode. The page converts reserved characters according to the selected URL rule.
What problem does it solve?
Spaces and symbols can break a URL when inserted without encoding. The converter produces the escaped form needed for that context.
Frequently asked questions
What does URL Encoder / Decoder do?
Quickly encode or decode URLs and query parameters online for free. Supports encodeURI, encodeURIComponent, and Base64 URL mode with instant copy.
How do I use URL Encoder / Decoder?
Choose encode or decode and the relevant scope, then enter the text or URL and copy the result.