URL Encoder / Decoder

Encode or decode URL components including special characters, spaces, and Unicode.

Tip: Use encode when building query strings or paths. Use decode when inspecting encoded links.

Frequently Asked Questions

Why do URLs need encoding?

URLs can only contain a limited character set. Special characters like spaces, &, ?, = and Unicode must be percent-encoded (e.g. space → %20).

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL, preserving characters like / and :. encodeURIComponent encodes individual params, encoding / and : as well.

Related Tools