Encoding tool

URL Encoder / Decoder

Encode or decode URL text with encodeURI or encodeURIComponent behavior in your browser.

Your data is processed locally in your browser and is not sent to our server.

Result

Your result will appear here.

How to use URL Encoder / Decoder

  1. Choose URI or component mode.
  2. Paste text and select Encode or Decode.

Example

https://example.com/search?q=hello world&lang=en

Technical details

encodeURI is for a complete URI and leaves URL separators intact. encodeURIComponent is for an individual URL component.

Frequently asked questions

When should I use encodeURIComponent?

Use it for individual query parameter values or path components, not an entire URL.