Back to editor

URL Encoder

Encode and decode URL components.

EncodeDecode

FAQ

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes all characters except letters, digits, and - _ . ! ~ * ' ( ). encodeURI additionally preserves URI structural characters like / ? : @ & = + $ # so the full URL remains valid.

What does Form-encoded (+) mode do?

It encodes like encodeURIComponent but replaces spaces with + instead of %20, matching the application/x-www-form-urlencoded format used by HTML forms.