XML URL Encoding
Paste XML and percent-encode it for URLs, query strings, form posts, redirects, or logs.
Last updated: May 28, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is XML URL Encoding?
XML URL Encoding converts characters such as <, >, quotes, spaces, and line breaks into URL-safe percent-encoded sequences. This is useful when XML needs to travel inside a query parameter, application/x-www-form-urlencoded body, redirect URL, webhook debug link, or log field that cannot safely contain raw markup.
How to Use XML URL Encoding
Paste XML into the input panel.
Keep validation enabled if the source should be well formed.
Enable pretty-print before encoding if you want stable whitespace.
Choose spaces-as-plus for form-encoded payloads or double encoding for nested URL values.
Copy or download the encoded output.
Common Use Cases
- Encoding XML snippets for query parameters.
- Preparing XML values for form-encoded POST bodies.
- Debugging SOAP payloads inside redirect URLs.
- Embedding XML in logs or URLs without breaking delimiters.
Example Input and Output
A simple XML status node becomes URL-safe text.
<status ok="true">Ready</status>%3Cstatus%20ok%3D%22true%22%3EReady%3C%2Fstatus%3EPrivacy
XML is encoded locally in your browser and is never sent to a server.

