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