URL Encoder / Decoder
Percent-encode text for safe use in a URL, or decode a percent-encoded URL back to readable text.
Input
Output
URL encoding (percent-encoding) replaces characters that aren't allowed in a URL — spaces, &, ?, and others — with a % followed by their hex code, so the value can be safely used in a query string or path segment.
Frequently asked questions
How do I URL encode text online?
Paste your text or URL into the input box and click Encode. Special characters are percent-encoded so the result is safe to use in a URL.
What is the difference between "Component" and "Full URI" mode?
Component mode (encodeURIComponent) escapes every reserved character including &, ?, and /, for encoding a single query parameter value. Full URI mode (encodeURI) leaves URL structure characters like :, /, and ? untouched, for encoding a complete URL.