How to use it
- Encode turns spaces, symbols and non-English text into URL-safe sequences such as
%20. - Decode turns those sequences back into readable text. Handy for long, unreadable links copied from the address bar.
- Parse URL splits a URL into scheme, host, path, query parameters and fragment, and shows each one decoded.
What URL encoding is
Only letters, digits and a few symbols may appear in a URL as is. Anything else, including spaces, accented letters and characters with special meaning such as “&” and “=”, is converted to UTF-8 bytes and each byte is written as “%” followed by two hex digits. This is called percent-encoding. For example, “é” becomes %C3%A9.
Which method to choose
| Method | Use it for | “a b&c/” becomes |
|---|---|---|
| Value or path (encodeURIComponent) | A single query value or path segment | a%20b%26c%2F |
| Whole URL (encodeURI) | A complete URL. Separators such as / ? & are kept | a%20b&c/ |
| Form | HTML form data. Spaces become + | a+b%26c%2F |
If unsure, use “Value or path”. It is the right choice for anything you insert into part of a URL, such as a search term.
Frequently asked questions
Why does decoding say the sequence is not valid UTF-8?
Some older websites encoded text with legacy character sets such as Latin-1 or Shift_JIS. This tool decodes UTF-8, the standard for modern URLs.
Why are “+” signs not turned into spaces?
Only form encoding uses “+” for spaces. Tick “Treat + as a space” when decoding form data or search URLs.
Is the URL sent anywhere?
No. Even parsing happens entirely in your browser.