URL Encoder

encodeURIComponent and decode in one box.

Loading tool

This tool runs in your browser. Nothing is uploaded.

Encode a search term before it goes into a query string, or decode a messy log line.

How to use this tool

  1. Paste the snippet. Drop JSON, code, or a token into the input. It is not sent to a server.
  2. Run the action. Format, decode, or generate. Parse errors stay on the page.
  3. Copy the output. Copy the result back into your editor or terminal.

Two modes

Component mode encodes reserved characters. Full-URL mode leaves : / ? & = intact so a complete address stays clickable.

Frequently asked

Should I encode a whole URL including https?

Only if that URL is itself a query value. Otherwise use full-URL mode.

Does + become a space?

In query decode, + is treated as space. In path decode it stays plus.

Are Unicode characters encoded as UTF-8?

Yes, then percent-escaped.

Is this the same as HTML entities?

No. Use the HTML entity tool for markup.

Does percent-encoding leave the browser?

No. The encoder never posts the string.