URL Encoder & Decoder
Encode full URLs or individual query values, decode percent-encoded strings, and inspect URL parts like protocol, host, query params, and fragments.
Use full encoding for query values and partial encoding for whole URLs.
URL Parser
Paste a complete URL above to inspect its parts.
How to Use
- Choose Encode to convert plain text into a URL-safe string, or Decode to turn encoded text back into readable text.
- In Encode mode, leave Full encoding on for query values or switch it off to keep URL structure characters like / and ? readable.
- Paste text or a full URL into the input box and review the live output on the right.
- Use Copy to grab the converted result instantly, or Clear to reset both boxes.
- Paste a complete URL to inspect its protocol, host, path, query parameters, and fragment in the parser section.
Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI is meant for an entire URL and leaves structural characters like :, /, ?, &, and # untouched. encodeURIComponent is meant for individual parts such as query parameter values, so it encodes those characters too.
Why does decode mode turn + into a space?
Many forms and query strings use + as a shorthand for spaces. The decoder handles that common case before decoding the rest of the percent-encoded characters.
When should I encode a URL?
You should encode a URL whenever it contains spaces, symbols, Unicode characters, or dynamic values that need to be safely passed in query strings, API requests, redirects, or links.
Can I use this to inspect query parameters in a full URL?
Yes. Paste a full URL and the parser will break it into protocol, host, path, fragment, and a table of query parameters and values.