URL Encoder & Decoder
Quickly encode special characters in a URL or decode a percent-encoded string back into readable text. This tool supports both encodeURI (keeps URL-reserved characters like / and ? as-is) and encodeURIComponent (encodes everything, ideal for individual query parameter values). It's a fast helper for building share links, debugging API requests, or escaping search strings.
Frequently Asked Questions
What is URL encoding?
URL encoding (or percent-encoding) replaces unsafe characters with %XX sequences so they can be safely included in a URL. For example, a space becomes %20.
When should I use it?
Whenever you put user input, special characters or non-ASCII text into a URL — such as in query strings, form data, or share links.
What's the difference between encodeURI and encodeURIComponent?
encodeURI keeps reserved characters like /, ?, and # unchanged so it works on full URLs. encodeURIComponent encodes those too, which is what you want for individual query parameters.
Is the data sent anywhere?
No. Encoding and decoding happen entirely in your browser using built-in JavaScript functions.