Skip to content
MyDailyTool

URL Encoder/Decoder

Percent-encode and decode URLs and query string values. Handles full URLs or individual components — paste any URL to encode special characters or decode percent-encoded strings.

Encode

Decode

How to use the url encoder/decoder

Encode a string for safe inclusion in a URL, or decode percent-encoded characters back to plain text. Two encoding modes: 'component' (encodes everything, including / and ?) and 'URI' (preserves URL structure characters).

Formula & explanation

Percent encoding replaces any non-ASCII or reserved character with %XX, where XX is the byte's UTF-8 hex. Reserved characters per RFC 3986 include : / ? # [ ] @ ! $ & ' ( ) * + , ; =.

Examples

"hello world" → "hello%20world". "/" stays "/" with encodeURI but becomes "%2F" with encodeURIComponent.

Frequently asked questions

When do I use 'component' vs 'URI'?
Use 'component' when encoding a value going inside a URL (a query param). Use 'URI' when encoding an entire URL that's already structured.
What about + for spaces?
Form-encoded URLs use + for space; percent-encoded URLs use %20. We emit %20 (the modern standard).

Related developer tools tools

Related reading