XML URL Encode
Percent-encode an XML document so it survives a query string, a form field or a header. Nothing is uploaded.
What URL-encoding XML does
Every byte outside the unreserved set becomes a percent escape, so the angle brackets, quotes and ampersands that make XML readable are all carried safely through a query string or a form field. The encoding runs on the exact text you pasted, not on a re-serialised document, so whitespace and entities arrive as they were written. The result is the parameter value only; build the URL around it.
How to use it
XML URL Encode: paste the XML into the box above, and press Run to get the URL-encoded text below.
Worked example
Input:
<note to="Ada">a & b</note>
Output:
%3Cnote%20to%3D%22Ada%22%3Ea%20%26amp%3B%20b%3C%2Fnote%3E
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads XML and returns URL-encoded text; reloading the page discards both.
Every byte outside the unreserved set becomes a percent escape, so the angle brackets, quotes and ampersands that make XML readable are all carried safely through a query string or a form field. The encoding runs on the exact text you pasted, not on a re-serialised document, so whitespace and entities arrive as they were written. The result is the parameter value only; build the URL around it.
Percent-encode an XML document so it survives a query string, a form field or a header. Nothing is uploaded.
How to use it
XML URL Encode: paste the XML into the box above, and press Run to get the URL-encoded text below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads XML and returns URL-encoded text; reloading the page discards both.
What to Expect
Best for
- Converting XML to URL-encoded text when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
<note to="Ada">a & b</note>
Sample output
%3Cnote%20to%3D%22Ada%22%3Ea%20%26amp%3B%20b%3C%2Fnote%3E
Frequently asked questions
How do I use the xml url encode?
XML URL Encode: paste the XML into the box above, and press Run to get the URL-encoded text below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.