URL Encoder and Decoder

Encode text for a URL component or decode percent-encoded text in your browser.

Direct answer: Paste a URL component and choose Encode or Decode. Encoding protects reserved characters when values are placed inside a query string.
Your result appears here.

How this tool works

This tool uses encodeURIComponent and decodeURIComponent. Encode parameter values rather than an entire URL. A malformed percent-encoded input cannot be decoded and returns a clear error.

Privacy and editorial review

This tool runs in your browser and does not require an account. GrowthSparx reviews its logic and explanatory content, but you should verify outputs before production use.

Frequently asked questions

Should I encode a complete URL?

Usually no. Encode individual query-parameter values, not separators such as : / ? and &.

What does %20 mean?

It is the percent-encoded representation of a space.

Does this tool transmit the text?

No. Encoding and decoding happen in your browser.