Skip to content
nah

URL Encoder / Decoder

Encode, decode, and parse URLs and query strings — instantly, in your browser.

100% in your browser. Nothing is uploaded.

Encoded output

Output appears here.

Frequently asked questions

Is anything sent to a server?

No. Encoding, decoding, and URL parsing all run in your browser using native JavaScript APIs. No data leaves your device.

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ). encodeURI additionally leaves : / ? # [ ] @ & = + $ , ; % intact — it is meant for full URLs where you want to preserve URL structure. Use encodeURIComponent for individual query values; use encodeURI when encoding a complete URL.

Why does decoding sometimes show an error?

decodeURIComponent throws on malformed percent-sequences like a bare % or %xy where xy is not valid hex. The tool surfaces the browser's exact error so you can identify the offending character.

More dev tools