URL Encoder / Decoder
Encode text so it can sit inside a URL, or decode a URL full of %20 and %C3%A9. The tool flags double encoding and invalid UTF-8.
Privacy and cost
This tool runs in your browser. What you type or paste is not sent to our servers and it costs nothing to use.
How it works
- Pick Encode or Decode and paste your text or URL.
- When encoding, choose the mode: component (one value), full URL (keeps : / ? & = #) or form (space becomes +).
- Copy the result; the analysis shows the number of %XX sequences, decoding layers and any double encoding.
Example
"café crème & thé" in component mode becomes caf%C3%A9%20cr%C3%A8me%20%26%20th%C3%A9. Conversely, https://example.com/caf%25C3%25A9 is double-encoded: two decoding passes give https://example.com/café.
What the result means
Percent-encoding replaces every disallowed byte with %XX, in UTF-8: é becomes %C3%A9. A %25 followed by two hex digits means a "%" was itself encoded, so the URL was encoded twice and will not point at the intended page.
Common problems this tool helps with
- A double-encoded URL (%2520) often returns a 404 or an empty page.
- Encoding a whole URL in component mode destroys the / ? & = and breaks the link.
- An unencoded parameter value containing & or # cuts the query in the wrong place.
- A stray % or an invalid UTF-8 sequence makes decoding fail.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI keeps the characters that structure a URL (: / ? & = #). encodeURIComponent encodes them too, so it is meant for a single value or path segment.
Should a space be %20 or +?
%20 is valid anywhere in a URL. The + only means a space in a query string or form data (application/x-www-form-urlencoded).
Is my text sent to a server?
No. Everything runs in your browser.
Related tools
- URL ParserPaste a URL to see each of its components and a decoded table of its query parameters, plus the details that matter for SEO.Free · runs in your browser
- URL Parameter RemoverPaste your URLs and strip tracking parameters (utm_*, gclid, fbclid…) or any names you choose in one go, leaving everything else untouched.Free · runs in your browser
- Slug GeneratorPaste a title to get a readable lowercase URL slug without accents, with a maximum length and a preview of the full address.Free · runs in your browser
- UTM BuilderAdd utm_ parameters to your links without typos or inconsistent casing, one link at a time or in bulk from a list.Free · runs in your browser
- SEO-Friendly URL CheckerPaste one or many URLs to check length, depth, casing, separators, parameters and trailing-slash consistency, with a score per URL.Free · runs in your browser
- Canonical Tag CheckerEnter a URL or paste the HTML: the tool reads the canonicals in the HTML and the Link header, compares them with the page URL and tests the target.Free · no account needed