What is URL encoding?
URLs can only use a limited set of characters. URL encoding (percent-encoding) converts spaces, symbols, and non-English characters into a safe form like %20 so links and query strings don’t break.
This tool encodes and decodes instantly in your browser — nothing is uploaded. It uses encodeURIComponent, the right choice for query-string values and parameters.
Frequently Asked Questions
When do I need to URL-encode something?
Whenever you put text into a URL — especially query parameters — that contains spaces, &, ?, =, /, or non-English characters. Encoding stops them from breaking the link.
What’s the difference between encodeURI and encodeURIComponent?
encodeURIComponent (used here) encodes a single value like a parameter, escaping /, ?, & and =. encodeURI is for a whole URL and leaves those structural characters intact.
Why did decoding fail?
The input had a malformed percent-sequence (like a lone % not followed by two hex digits). Check that it’s a properly encoded string.
Is my data private?
Yes. Everything runs in your browser with JavaScript — nothing is sent to a server, logged, or stored.



