URL Encoder / Decoder
Encode and decode URLs and URI components with character diff view
Your input never leaves your browser — all processing happens client-side.
Advertisement
Result will appear here...
Advertisement
Free Online URL Encoder and Decoder
URL encoding (percent encoding) converts characters that are not safe in URLs into a %-prefixed hexadecimal representation. This tool supports three encoding modes: encodeURIComponent (for query values), encodeURI (for full URLs), and decoding back to plain text.
What is URL Encoder / Decoder?
URLs can only contain a safe subset of ASCII characters. Characters outside this set — like spaces, Unicode characters, and reserved symbols — must be percent-encoded before being used in a URL. Percent encoding replaces each unsafe byte with % followed by two hex digits. For example, a space becomes %20 and an at-sign becomes %40.
How to Use This Tool
- 1Choose Encode or Decode mode.
- 2Select the encoding type: encodeURIComponent (for query params) or encodeURI (for full URLs).
- 3Paste your text or URL into the input box.
- 4The encoded or decoded result appears instantly.
- 5The diff view shows exactly which characters were changed.
Use Cases
- ▸Encoding query string parameters before appending them to URLs.
- ▸Decoding URL-encoded strings from server logs or API responses.
- ▸Debugging malformed URLs with unexpected percent-encoded characters.
- ▸CTF challenges with URL-encoded payloads.
Is It Safe to Use?
All encoding and decoding uses native browser JavaScript functions (encodeURIComponent, decodeURIComponent, encodeURI, decodeURI). No data is transmitted. The tool works entirely offline once loaded.
Related Tools
Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but preserves characters that have special meaning in URLs (like :, /, ?, #). encodeURIComponent encodes a single URL component (like a query parameter value) and also encodes those special characters. Use encodeURIComponent for query string values.
What is percent encoding?
Percent encoding (URL encoding) replaces unsafe ASCII characters and non-ASCII characters with a % sign followed by two hexadecimal digits representing the byte value. For example, a space becomes %20.
Why does + sometimes mean a space in URLs?
In the query string portion of a URL (application/x-www-form-urlencoded format), + is treated as a space. This is a legacy convention from HTML forms. encodeURIComponent uses %20 for spaces, not +.
Advertisement