URL Encoder & Decoder — Free Online Tool

Encode any URL or text string by replacing special characters with percent-encoded equivalents, or decode any percent-encoded URL back to plain text. Choose between encodeURIComponent (encodes everything including ?, &, =) and encodeURI (preserves URL structure characters). All processing runs in your browser — no data leaves your computer.

Encoding type:
Copied!

How to use the URL Encoder

Paste your raw URL or text into the left panel. Select your encoding type — use encodeURIComponent for query parameter values, encodeURI for full URLs. Click Encode or Decode, then copy the result. Use Swap to instantly move the output back to the input for chaining.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and preserves characters like :, /, ?, &, and =. encodeURIComponent encodes everything including those characters — use it when encoding individual query parameter values to prevent them from being misinterpreted by the server.

What does %20 mean in a URL?

%20 is the URL-encoded representation of a space character. In URLs, spaces are not allowed and must be replaced with %20 or +. This tool handles both formats automatically.

Scroll to Top