URL Encoder / Decoder
Percent-encode and decode URLs and query parameters. Supports both component and full-URI modes.
Utility
URL Encoder / Decoder
Generated on April 25, 2026
:/?&=#) — use for individual parameter values. Full URI mode preserves the URL syntax characters — use for entire URLs.?What is the URL Encoder / Decoder?
The URL Encoder/Decoder converts text to and from percent-encoded form (the `%20` style of escaping you see in URLs). Two modes: 'Component' uses encodeURIComponent — escapes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ) — appropriate for individual URL parts (parameter values, path segments). 'Full URI' uses encodeURI — preserves URL syntax characters like `:/?#&=` so the URL itself stays intact. Includes a query-parameter parser that breaks decoded URLs into a key/value table.
The Formula
Practical Examples
Encode a search query for a URL: `q=hello world` → `q=hello%20world`.
Encode a path with non-ASCII: `/cafés/` → `/caf%C3%A9s/` (UTF-8 bytes for é → %C3%A9).
Decode a complex query string from analytics or a redirect: `?utm_source=google%20ads&q=cats%20%26%20dogs`.
When passing one URL inside another (OAuth redirects, share links), encode the inner URL with `encodeURIComponent`.
Frequently Asked Questions
Popular Conversions
Jump to a ready-made conversion — useful for quick reference and sharing: