URL Encoder/Decoder

Safely encode or decode a URL component.

✓ Free to use · Runs in your browser · No sign-up
Paste or type into this box to get started. Up to 100,000 characters (letters, numbers, spaces and symbols). Nothing you enter is sent to a server.

How to use URL Encoder/Decoder

  1. Paste a query parameter value or other URL component.
  2. Select Encode to percent-escape it, or Decode to restore text.
  3. Process and copy the result into your workflow.

A closer look

Encode a single URL component using JavaScript’s encodeURIComponent rules. Spaces become %20, and reserved characters such as & and = are escaped so they can be part of a value. Decoding uses decodeURIComponent and reports malformed percent escapes. Encoding an entire URL also escapes its separators, so use it for a component rather than a full navigable address.

A practical example

Encode red & blue to get red%20%26%20blue as one parameter value. Encoding a complete address also escapes its separators, so check your intended use.

A useful tip

Form-encoded data often uses + for spaces. This tool leaves literal plus signs unchanged when decoding; it does not apply HTML form decoding rules.

Good questions. Simple answers.

Why did https:// become encoded?

The encoder treats the entire input as one component. That is useful for a URL nested inside another URL’s parameter, but not for encoding a complete address in place.

Why does decoding report an error?

An incomplete percent escape or invalid UTF-8 sequence is not a valid encoded component. Check for truncated input or stray percent signs.

Explore all developer tools for related tasks and category-specific guidance, or read how Toolzafi handles your data.

A few more useful tools