URL Encode/Decode

Turn text into a percent-encoded string for use in query parameters, or decode an already-encoded string back.

Input code
Result

Use cases

  • Preparing values for a query string
  • Decoding links with special characters to read them
  • Checking exactly what's being passed in a given URL parameter

FAQ

How is this different from encoding the whole URL?

The tool encodes/decodes a single component (encodeURIComponent), which is the correct approach for query parameter values, not a full URL.

What happens decoding a malformed % sequence?

You get an error message — malformed % sequences are never silently decoded.

Related tools