Free Online Tool · Encode · Decode · Parse URLs
Free URL Encoder Decoder Online
Percent-encode special characters for safe use in URLs and query strings. Decode %xx sequences back to readable text. Parse full URLs into protocol, host, path, and query parameters.
What is URL Encoding?
URL encoding (also called percent encoding) converts characters that are not allowed in URLs into a safe format using a % followed by two hexadecimal digits. For example, a space becomes %20, and & becomes %26. This is essential when passing special characters in query strings, API parameters, and redirect URLs.
FAQ — URL Encoder Decoder
What characters get percent-encoded?
All characters except A–Z, a–z, 0–9, and - _ . ~ are encoded. This includes spaces (%20), & (%26), = (%3D), + (%2B), / (%2F), ? (%3F), # (%23), and all non-ASCII Unicode characters.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but leaves characters like /, ?, &, # intact. encodeURIComponent encodes everything including those characters — use it for encoding query string values. Our tool uses encodeURIComponent.
How do I decode a percent-encoded URL?
Switch to "Decode" mode, paste the encoded URL (containing %xx sequences), and click URL Decode. The original text with all special characters is restored.
What does the URL Parser do?
Click "Parse URL" with a full URL in the input box. It breaks the URL into: protocol, hostname, pathname, query parameters (as key-value pairs), and hash fragment.
Can I encode an entire URL?
If you want to pass a full URL as a parameter inside another URL (e.g., a redirect_uri), use Encode mode to percent-encode the entire URL. Otherwise, encoding a full URL meant for direct browser use will break it.