DEV🔗URL Encode
encodeURIComponent
Uses encodeURIComponent / decodeURIComponent; supports Chinese, spaces, and special characters.
URL Encode/Decode: Chinese & Special Chars
Typical scenarios: ① share a URL containing Chinese or special characters with a third party after encoding; ② handle spaces, `&`, `=` in API parameters; ③ troubleshoot parameter errors in login callback URLs.
How to use: enter the content to encode or decode, pick an encoding mode, and click the corresponding button — copy the result in one click.
Notes: ① most APIs require the whole parameter value to be escaped — use the "component" mode; ② if a URL is already encoded, don't encode it again or it becomes an unreachable link; ③ Chinese URLs in the address bar are usually auto-encoded — decode them before pasting into a backend.
Related Tools
← Home