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.