Home› Unit Conversions› URL Encode / Decode

URL Encode / Decode

Encode special characters for URLs (percent encoding) or decode encoded URLs back to readable form. Useful for inspecting share links and query strings.

Inputs

Output
—
Input length
—
Output length
—
Method used
—

About URL Encode / Decode

Component vs full URI

encodeURIComponent encodes /, ?, #, & — useful for parameter values. encodeURI preserves them — useful for whole URLs. Wrong choice can break URLs: encoding a slash in a path makes the URL invalid.

Common encoded chars

Space → %20 (or + in form data). & → %26. = → %3D. ? → %3F. # → %23. Plus all non-ASCII (Unicode chars get multi-byte UTF-8 then percent-encoded).

Where you need it

Query parameters with spaces or special chars. International domain names. Forms posting non-ASCII content. Manually constructing API URLs in code.