[{"data":1,"prerenderedAt":207},["ShallowReactive",2],{"tool-content-en-url-encoder":3},{"id":4,"title":5,"body":6,"description":197,"extension":198,"locale":199,"meta":200,"navigation":201,"path":202,"seo":203,"stem":204,"toolId":205,"__hash__":206},"tools\u002Ftools\u002Fen\u002Furl-encoder.md","URL Encoder and Decoder",{"type":7,"value":8,"toc":176},"minimark",[9,14,27,30,34,39,61,65,72,76,94,102,110,114,131,135,138,142,151,159,163,169,173],[10,11,13],"h2",{"id":12},"what-is-url-encoding","What is URL encoding?",[15,16,17,18,22,23,26],"p",{},"URL encoding, also called percent encoding, converts characters that should not be sent directly in a URL into ",[19,20,21],"code",{},"%"," followed by two hexadecimal digits. For example, a space becomes ",[19,24,25],{},"%20",", while Unicode text is represented as UTF-8 bytes.",[15,28,29],{},"URL encoding is not encryption. Anyone can decode an encoded value, so it should not be used to protect passwords or keys.",[10,31,33],{"id":32},"three-encoding-modes","Three encoding modes",[35,36,38],"h3",{"id":37},"url-component","URL component",[15,40,41,42,45,46,49,50,49,53,56,57,60],{},"URL component mode uses ",[19,43,44],{},"encodeURIComponent"," and encodes reserved characters such as ",[19,47,48],{},"\u002F",", ",[19,51,52],{},"?",[19,54,55],{},"&",", and ",[19,58,59],{},"=",". It is suitable for a query parameter value, path segment, or individual parameter name.",[35,62,64],{"id":63},"full-url","Full URL",[15,66,67,68,71],{},"Full URL mode uses ",[19,69,70],{},"encodeURI"," and preserves the protocol, hostname, path separators, query structure, and fragment. It is useful for a complete URL containing spaces or Unicode characters.",[35,73,75],{"id":74},"form-encoding","Form encoding",[15,77,78,79,82,83,86,87,90,91,93],{},"Form encoding follows ",[19,80,81],{},"application\u002Fx-www-form-urlencoded",". It represents spaces as ",[19,84,85],{},"+",", while a literal plus sign becomes ",[19,88,89],{},"%2B",". During decoding, ",[19,92,85],{}," is converted back to a space.",[10,95,97,99,100],{"id":96},"_20-versus",[19,98,25],{}," versus ",[19,101,85],{},[15,103,104,106,107,109],{},[19,105,25],{}," is the general percent-encoded representation of a space. ",[19,108,85],{}," is primarily a space representation in traditional form encoding and usually means a literal plus sign in a regular URL component. This tool handles each according to the selected mode.",[10,111,113],{"id":112},"repeated-encoding","Repeated encoding",[15,115,116,117,119,120,123,124,126,127,130],{},"The tool does not guess whether input has already been encoded. Encoding ",[19,118,25],{}," again produces ",[19,121,122],{},"%2520"," because the ",[19,125,21],{}," character becomes ",[19,128,129],{},"%25",". This is standard behavior, not an error.",[10,132,134],{"id":133},"privacy-and-security","Privacy and security",[15,136,137],{},"Input and output are processed locally in your browser and are never sent to a server. The tool does not put input into the URL or local storage.",[10,139,141],{"id":140},"frequently-asked-questions","Frequently asked questions",[35,143,145,146,148,149,52],{"id":144},"what-is-the-difference-between-encodeuri-and-encodeuricomponent","What is the difference between ",[19,147,70],{}," and ",[19,150,44],{},[15,152,153,155,156,158],{},[19,154,70],{}," preserves characters needed for a complete URL structure. ",[19,157,44],{}," encodes those characters and is therefore better for an individual parameter value.",[35,160,162],{"id":161},"why-does-decoding-fail","Why does decoding fail?",[15,164,165,166,168],{},"Common causes include a ",[19,167,21],{}," that is not followed by two hexadecimal digits or a percent sequence that is not valid UTF-8. Regular spaces and Unicode text are supported.",[35,170,172],{"id":171},"what-is-the-difference-between-url-encoding-and-base64","What is the difference between URL encoding and Base64?",[15,174,175],{},"URL encoding handles special characters in URLs, while Base64 represents binary data as text. They solve different problems and neither provides encryption.",{"title":177,"searchDepth":178,"depth":178,"links":179},"",2,[180,181,187,189,190,191],{"id":12,"depth":178,"text":13},{"id":32,"depth":178,"text":33,"children":182},[183,185,186],{"id":37,"depth":184,"text":38},3,{"id":63,"depth":184,"text":64},{"id":74,"depth":184,"text":75},{"id":96,"depth":178,"text":188},"%20 versus +",{"id":112,"depth":178,"text":113},{"id":133,"depth":178,"text":134},{"id":140,"depth":178,"text":141,"children":192},[193,195,196],{"id":144,"depth":184,"text":194},"What is the difference between encodeURI and encodeURIComponent?",{"id":161,"depth":184,"text":162},{"id":171,"depth":184,"text":172},"Encode and decode URLs, query parameters, and form text online with Unicode support. Everything stays in your browser.","md","en",{},true,"\u002Ftools\u002Fen\u002Furl-encoder",{"title":5,"description":197},"tools\u002Fen\u002Furl-encoder","url-encoder","ydN_S6NYb3BiGZeOHf5dJBZSq7OngEWW7QD_0F90h1U",1792391421562]