URL Encode/Decode
Percent-encode or decode a URL component using the real RFC 3986 rules.
🔒 Runs entirely in your browser — nothing here is ever uploaded
About the URL Encode/Decode
Percent-encodes or decodes a single URL component (a query parameter, form field, or path segment) using the real encodeURIComponent/decodeURIComponent rules a browser applies — not the legacy, Unicode-broken escape/unescape functions.
- Choose Encode or Decode.
- Paste your text or encoded string.
- Read the result, and copy it with the copy button.
Encoding "hello world & more?=test" produces "hello%20world%20%26%20more%3F%3Dtest"; decoding that string returns the exact original.
This encodes/decodes one component/value, not a full URL — encoding a full URL needs encodeURI instead, which leaves reserved characters like / and : untouched so the URL structure survives. A malformed percent-sequence on decode is caught and shown as a clear error rather than crashing.
- • Use this for one query-string value or form field, not a whole URL.
- • Spaces become %20, not + — that's the query-string convention, not this component-encoding standard.
- • A decode error almost always means the string wasn't actually percent-encoded, or was truncated.
- MDN Web Docs — encodeURIComponent() — accessed 2026-09-05