URL Encoder/Decoder

Encode and decode URLs and URI components for safe transmission in web applications.

Input

Encoding Reference

encodeURIComponent: Encodes all special characters including /, ?, #, &

encodeURI: Preserves URL structure characters (/, ?, #, &, =)

Encoded Output

Hello%20World!%20How%20are%20you%3F%20Special%20chars%3A%20%40%23%24%25%5E%26*()

URL Parts

Protocol:https:
Host:example.com
Path:/Hello%20World!%20How%20are%20you
Query:?%20Special%20chars:%20@
Hash:#$%^&*()

Query Parameters:

Special chars: @:

Common Encodings

Space → %20
! → %21
@ → %40
# → %23
$ → %24
& → %26
+ → %2B
= → %3D