URL Encoder / Decoder
Percent-encode or decode URLs and params
Putting a raw value into a URL is unsafe for more reasons than spaces: a question mark, an ampersand or a hash in the value will be read by the browser as structure rather than content. Percent-encoding solves that by replacing each byte with a percent sign and two hexadecimal digits, and this tool applies the component form of that standard — the same one behind encodeURIComponent. Letters, digits and the marks - _ . ! ~ * ' ( ) pass through untouched; everything else, including spaces, slashes, colons and every non-ASCII character, is escaped. Decoding reverses the process and additionally turns a plus sign back into a space, matching how browsers submit HTML forms. Note what this means in practice: a value like a search query encodes correctly, while an entire URL would have its separators escaped and would not survive being pasted back into an address bar.
Encode text for safe use in a URL query string, or decode percent-encoded text back to readable form. Uses component encoding (encodeURIComponent), which escapes everything except letters, digits and - _ . ! ~ * ' ( ); the decoder also converts + back to a space.
Private URL Encoder / Decoder In Your Browser
URL Encoder / Decoder is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use URL Encoder / Decoder
Select the Encode tab and paste the value you need to place inside a URL into Plain input.
Copy the percent-encoded result from the Encoded result box and insert it as a single query-string value.
To read a value back, switch to Decode and supply the encoded string as Encoded input.
Fold the decoded text into a larger query string yourself if you have several parameters to reassemble.
- Standard component-level percent-encoding, matching encodeURIComponent exactly
- Non-ASCII characters encoded from their UTF-8 byte values, not mangled
- Decoding converts + back to a space for form-style query strings
- Immediate output, with malformed input reported rather than silently dropped
- A front-end developer appending a user's search phrase to a query string without letting a stray ampersand break the URL.
- A data analyst decoding a heavily escaped link from an analytics report so the parameters become readable.
- A student assembling a request URL by hand and needing each parameter value escaped correctly.