Free Online Tool

URL Encoder & Decoder

Encode or decode URLs and query string components. Parse full URLs into their components. Supports standard and form encoding.


Input
0 chars
Encoded Output
Encoded Input
Decoded Output
URL to Parse
Components
ComponentValue

URL Encoder & Decoder

URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into their percent-encoded equivalents. For example, a space becomes %20, and an ampersand becomes %26.

encodeURIComponent vs encodeURI

encodeURIComponent encodes virtually everything and should be used for individual query string values. encodeURI preserves characters like : / ? # @ and is used for complete URLs. Form encoding replaces spaces with + instead of %20, as used in HTML form submissions.