Yueser← All tools

URL Encode / Decode

Convert Chinese parameters into %E4%B8%AD%E6%96%87, or restore a link that has turned into mojibake.


  
Difference between the two encodings

encodeURIComponent is escaped / ? & = and similar delimiters, which suits a single parameter value;encodeURI keep them — that suits a whole link. The "whole string" option above uses the first method (most common); "encode parameter values only" will ? and & Split apart and handle them one by one.