DevToolset
About

URL Encoder/Decoder

Encode or decode URLs and query parameters. Useful for working with URLs that contain special characters.

encodeURI vs encodeURIComponent

encodeURI

Encodes a complete URI, preserving characters that have special meaning in a URL:

; , / ? : @ & = + $ #

Use when encoding a full URL.

encodeURIComponent

Encodes all characters except:

A-Z a-z 0-9 - _ . ! ~ * ' ( )

Use when encoding query parameters or parts of a URL.