URL Encode / Decode
Encode and decode URL components and full URLs with percent-encoding, instantly.
About this tool
URL encoding (percent-encoding) converts characters that are not allowed or have special meaning in URLs into a % followed by two hex digits. This tool both encodes text into URL-safe format and decodes percent-encoded strings back to readable text.
There are two common URL encoding functions: encodeURIComponent encodes all characters except letters, digits, -, _, ., and ~. encodeURI encodes everything except characters that have special URL meaning (/:@!$&'()*+,;=). This tool supports both modes so you can handle component-level encoding (for query parameter values) and full-URL encoding separately.
All processing runs in your browser using standard JavaScript URL encoding APIs. No data is sent anywhere. Common use cases: debugging REST API requests with special characters, constructing query strings, handling filenames with spaces or Unicode in download URLs, and decoding percent-encoded strings received from web forms or logs.
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
Why is a space encoded as %20 or +?
Can this decode a full URL from a browser address bar?
Related tools
Base64 Encode / Decode
Encode text or binary to Base64 and decode it back — with full UTF-8 support.
HTML Entity Encode / Decode
Encode special characters as HTML entities and decode them back — all in your browser.
URL Parser & Inspector
Decompose any URL into protocol, host, path, query params, and hash — with per-field copy.