URL Encode/Decode

Encode and decode URLs / text (whole URL or component values)

Docs

whole URL encoded · 73 chars · 0.02 ms
Input71 chars
Output
whole URL encoded · 73 chars · 0.02 ms
1
https://devtools.example.com/search?q=DevTools%2520Toolbox&page=1#section

使用说明

Encode and decode URL components, handling Chinese characters and special characters correctly.

Encode

Use encodeURIComponent on parameter values to avoid breaking the URL structure.

Decode

Restore encoded parameter values.

Note

Use different granularity for a whole URL versus a single parameter; never re-encode an already-encoded string.