URL Encode / Decode
Encode or decode URLs and query-string values. Everything runs in your browser. Nothing is sent anywhere.
How to encode or decode a URL
- Pick Encode or Decode with the Mode toggle.
- Type or paste your text into the input. The output updates as you type.
- Turn on “Encode each component” for a single query value or path segment, so reserved characters like &, =, and / are escaped too. Leave it off to encode a whole URL, which keeps those characters intact.
- Copy the result from the output box.
When to use it
A value going into a query string has to be percent-encoded or it breaks the URL: a space, an ampersand, or a slash inside the value would otherwise be read as URL structure. Encoding with “Encode each component” on makes the value safe to drop after the “=” in a query parameter.
Decoding does the reverse: paste a percent-encoded URL from a log, a redirect, or the browser address bar and read back the plain text, so you can see what search term or path a link actually carried. Encoding with the component option off is for a whole URL you want to make safe without breaking its structure.
Frequently asked questions
Is anything uploaded?
No. Encoding and decoding run entirely in your browser using the platform’s built-in functions.
What does the “component” option change?
On, it escapes all reserved characters (& = ? / # …), right for a query value or path segment. Off, it leaves reserved characters intact, right for encoding a whole URL.
Why did decoding fail?
The input has a malformed percent sequence, like a lone “%” or “%zz”. Fix the sequence and it decodes. Encoding never fails.