{"content":{"intro":"URLs may only contain a limited set of characters. Spaces, ampersands, question marks and non-English letters have to be \"percent-encoded\", written as a % followed by a hexadecimal code, so browsers and servers read the address correctly. This tool encodes text for URLs and decodes encoded URLs back to plain text.","sections":[["What gets encoded","Letters, digits and the symbols - _ . ! ~ * ' ( ) are left alone. Everything else is converted: a space becomes %20, & becomes %26, = becomes %3D, / becomes %2F and ? becomes %3F. Non-English characters are converted to their UTF-8 bytes, so é becomes %C3%A9."],["Encode values, not whole URLs","Encode each piece you're inserting into a link, a search term or a query-string value, rather than the complete address. Encoding a whole URL also encodes the \":\" and \"/\" in \"https://\", which breaks the link."],["%20 or +?","Web forms often send spaces as \"+\" in query strings. The decoder turns \"+\" into a space for that reason, which means a real plus sign inside an encoded value should be written as %2B."]],"faqs":[{"q":"Why does decoding show an error?","a":"The text contains a % that isn't followed by two valid hex digits, or an incomplete multi-byte sequence. A stray \"%\" such as \"100%\" in an otherwise encoded string is the most common cause."},{"q":"Is URL encoding the same as HTML encoding?","a":"No. URL encoding makes text safe inside a web address; HTML encoding makes text display correctly inside a web page. Use the HTML Entity Encoder & Decoder for the second job."}]},"copy":{"explain":"&quot;Everything&quot; mode (encodeURIComponent) encodes every reserved character, for a single value in a query string. &quot;Keep URL structure&quot; (encodeURI) leaves : / ? &amp; = # alone so a whole address stays working. Decoding turns % codes and + signs back into characters.","example":"Encode &quot;price &amp; tax = 5%&quot; → price%20%26%20tax%20%3D%205%25. Paste a link like https://www.example.com/search?q=gst calculator&amp;lang=en-IN and the URL breakdown lists the host, path and each query parameter decoded.","intro":"URLs may only contain a limited set of characters, so spaces, ampersands and non-English letters are &quot;percent-encoded&quot; as % followed by a hex code. This tool encodes and decodes as you type, lets you encode a single value or a whole URL, and breaks any link you paste into its protocol, host, path and query parameters.","sections":[["What gets encoded","Letters, digits and the symbols - _ . ! ~ * ' ( ) are left alone. Everything else is converted: a space becomes %20, &amp; becomes %26, = becomes %3D, / becomes %2F and ? becomes %3F. Non-English characters are converted to their UTF-8 bytes, so é becomes %C3%A9."],["Encoding a value or a whole URL","Use &quot;Everything&quot; for a piece you're inserting into a link, a search term or a query-string value. Use &quot;Keep URL structure&quot; for a complete address with spaces or Hindi text in it; it encodes those but keeps &quot;https://&quot;, slashes and ? &amp; = intact so the link still works."],["Reading a long link","Tracking links can be hard to read. Paste one in and the URL breakdown shows each query parameter with its decoded value, so you can see exactly what the link carries."]],"faqs":[{"q":"Why does decoding show an error?","a":"The text contains a % that isn't followed by two valid hex digits, or an incomplete multi-byte sequence. A stray &quot;%&quot; such as &quot;100%&quot; in an otherwise encoded string is the most common cause."},{"q":"%20 or +?","a":"Web forms often send spaces as &quot;+&quot; in query strings, so the decoder turns &quot;+&quot; into a space. A real plus sign inside an encoded value should be written as %2B."},{"q":"Is URL encoding the same as HTML encoding?","a":"No. URL encoding makes text safe inside a web address; HTML encoding makes text display correctly inside a web page. Use the HTML Entity Encoder &amp; Decoder for the second job."}]},"feat":[["Encode and decode","Percent-encoding updates as you type."],["Value or whole URL","Encode a single parameter, or a full link without breaking it."],["Link breakdown","Splits any URL into protocol, host, path and query parameters."],["Copy instantly","Each result is one tap away."]],"faqx":[{"q":"What is URL encoding?","a":"URL encoding, also called percent-encoding, replaces characters that are not allowed or have special meaning in a web address with % and two hex digits. A space becomes %20, &amp; becomes %26 and % itself becomes %25, so &quot;50% off&quot; turns into 50%25%20off."},{"q":"Should I choose &quot;Everything&quot; or &quot;Keep URL structure&quot;?","a":"Use Everything when encoding one value that goes inside a link, such as a search term, because it also encodes &amp; = ? / and #. Use Keep URL structure for a full address with spaces in it; https://x.com/a b?q=1&amp;r=2 becomes https://x.com/a%20b?q=1&amp;r=2."},{"q":"How are Hindi words written in a URL?","a":"Each character is turned into its UTF-8 bytes, and each byte becomes a % code. Most Devanagari characters take 3 bytes, so नमस्ते becomes a 54-character string starting %E0%A4%A8%E0%A4%AE. Browsers often display the Hindi but send the encoded form."},{"q":"What are the most common URL codes?","a":"Space is %20, &amp; is %26, = is %3D, ? is %3F, / is %2F, # is %23, + is %2B and % is %25. The rupee sign ₹ takes three bytes, so it becomes %E2%82%B9."},{"q":"Why did my link break when a value had an &amp; in it?","a":"In a query string, &amp; separates one parameter from the next, so a value like &quot;a&amp;b&quot; gets cut off at the &amp;. Encode just the value in Everything mode first, giving a%26b, and then put it in the link."},{"q":"What does %2520 in a URL mean?","a":"It means the text was encoded twice. The first pass turned a space into %20, and the second turned the % into %25, giving %2520. Decode it once to get %20, and again to get the space, then make sure your code encodes only once."},{"q":"How do I see the UTM or query parameters in a long link?","a":"Paste the full link that starts with http or https. The URL breakdown lists the protocol, host, path and fragment, and a table shows every query parameter, such as utm_source or utm_campaign, with its decoded value."},{"q":"Which characters are never encoded?","a":"In Everything mode, the letters A to Z and a to z, digits 0 to 9 and the symbols - _ . ! ~ * ' ( ) are left as they are. Every other character, including spaces and non-English letters, is turned into % codes."}]}