← All tools

URL Encoder / Decoder

Encode or decode any string. Toggle mode, get percent-encoding instantly.

Resulthello%20world%3F

How to read the result

Encode uses encodeURIComponent (encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( )). encodeURI leaves URL structure characters like : / ? # intact — use it for whole URLs, encodeURIComponent for single values.

Example

encode: hello world? → hello%20world%3F

FAQ

encodeURI vs encodeURIComponent?

encodeURI preserves : / ? # & for whole URLs. encodeURIComponent encodes those too, for embedding one value inside a query string.

Why did decoding fail?

A lone % or invalid hex (e.g. %ZZ, trailing %) is not valid percent-encoding.

Is my input sent anywhere?

No. All encoding runs in your browser.