URL Encoder and Decoder — Components and Full URLs

Developer Tools

Loading tool...

About This Tool

Encode URL parameter values with encodeURIComponent or preserve URL separators with encodeURI. Decode percent-encoded text and copy the result.

How to Use

  1. Paste text into the plain-text field.
  2. Choose encodeURIComponent for a value or encodeURI for a full URL.
  3. To decode, paste percent-encoded text into the encoded field and click Decode.
  4. Check and copy the result.

Choose what to encode

Use encodeURIComponent for a query parameter value. Use encodeURI for a whole URL when its separators should remain intact. For example, a b&c becomes a%20b%26c as a component. Conversion runs when you click a button; there are no live byte counters or hex inspection panels.

Decode and check errors

Decode uses decodeURIComponent. A plus sign remains a plus sign; this is not form decoding that replaces + with a space. Malformed sequences such as %ZZ show an error and leave the existing destination text unchanged. Repeated encoding changes % into %25, so avoid encoding an already encoded value unintentionally.

Limits

These are native JavaScript encoding functions, not encryption, link safety checks or a full URL validator. Some characters such as ! remain unchanged by encodeURIComponent; this is not a strict RFC 3986 escaping mode. The tool does not open the entered address. Shared site services are explained in the privacy policy.

Frequently Asked Questions

Which encode button should I use?
Use encodeURIComponent for a single parameter value and encodeURI for a whole URL whose separators should be preserved.
Does decoding turn + into a space?
No. This tool uses decodeURIComponent, which leaves literal plus signs unchanged.
Is URL encoding encryption?
No. Percent-encoding is reversible representation and does not protect secrets.