Back to all tools

URL Encoder / Decoder

Encode and decode URLs and URI components. Parse URLs into their individual parts.

What is URL Encoding?

URL encoding (also called percent-encoding) is a mechanism for encoding special characters in URLs. Since URLs can only contain a limited set of ASCII characters, any characters outside this set — including spaces, non-ASCII characters, and reserved characters like &, =, and ? — must be encoded using a percent sign (%) followed by two hexadecimal digits. For example, a space becomes %20.

This tool encodes and decodes URLs and URL components, and also parses URLs into their constituent parts (protocol, host, path, query parameters, etc.).

How to Use This URL Encoder/Decoder

  1. Choose your mode — Select "Encode" to percent-encode text, or "Decode" to convert percent-encoded text back to readable form.
  2. Select encoding type — Choose "Component" encoding (for query parameter values) or "Full URL" encoding.
  3. Enter your text or URL — Paste the text you want to encode or the URL-encoded string you want to decode.
  4. View parsed URL — If you enter a full URL, the tool automatically breaks it down into protocol, host, path, and query parameters.
  5. Copy the result — Use the copy button to copy the encoded or decoded output.

Common Use Cases

Frequently Asked Questions

What is URL encoding?

URL encoding (percent-encoding) replaces special characters in a URL with a percent sign followed by their hexadecimal value. For example, a space becomes %20. This ensures URLs are transmitted correctly over the internet.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but preserves characters like :, /, ?, and # that have special meaning in URLs. encodeURIComponent encodes everything except letters, digits, and a few special characters, making it suitable for encoding query parameter values.

How do I decode a URL online?

Paste your encoded URL into the input field and select "Decode". The tool will convert all percent-encoded characters back to their original form and also parse the URL into its component parts (protocol, host, path, query parameters, etc.).