XML URL Decoder
Decode percent-encoded XML strings online
URL-Encoded Input
Decoded XML Output
What is XML URL Decoder?
This tool decodes percent-encoded (URL-encoded) strings back into readable XML. When XML is passed through URLs, query strings, or HTTP parameters, special characters like <, >, &, spaces, and quotes are encoded as percent sequences (e.g., %3C, %3E). This tool reverses that process.
URL encoding is defined in RFC 3986 and is handled natively by browsers via the decodeURIComponent() function. All processing happens in your browser — your data never leaves your device.
How to URL-Decode XML
Follow these steps to decode your URL-encoded XML string.
Paste URL-Encoded String
Paste the percent-encoded string into the URL-Encoded Input panel. Sample loads an encoded order. Both %20 and + are read as spaces.
View Decoded XML
The Decoded XML Output panel shows the result as you type. When the decoded text is well-formed XML it is indented for reading; text, CDATA and comments are kept exactly. Anything else is shown as decoded, unchanged.
Copy or Download
Copy places the decoded XML on your clipboard; Download writes it to disk as a .xml file.
When You'd Actually Use This
Debugging API Requests
When inspecting HTTP requests that contain URL-encoded XML in query strings or POST bodies, decode them to read the actual XML content.
Log File Analysis
Server logs often contain percent-encoded XML payloads. Decode them instantly to understand what was sent in SOAP or REST calls.
Web Scraping & Parsing
Extract and decode XML data embedded in URLs from web pages or scraped content.
Form Submission Debugging
HTML forms that post XML send it form-encoded, with + for spaces. Paste the captured body here to read the submitted XML.
Frequently Asked Questions
Is my data uploaded?
No. Decoding happens in your browser with the native decodeURIComponent() function; your data never leaves your device.
What is percent-encoding?
Percent-encoding (URL encoding) replaces special characters with a % followed by two hex digits, as defined in RFC 3986.
Is the decoded XML pretty-printed?
Yes, when it is well-formed. Indentation is added between elements only; text values, CDATA, comments and mixed content are not touched. If the decoded text is not well-formed XML, you see it exactly as decoded.
What about "+" signs?
They are decoded as spaces, which is how HTML forms encode a space. A literal plus sign is always encoded as %2B, so it survives. That plus-for-space rule comes from the form-encoding section of the WHATWG URL Standard, not from RFC 3986.
What if the input is not valid URL encoding?
You get an error. The usual culprits are a lone % with no two hex digits after it, or escapes that decode to bytes which do not form valid UTF-8.
Can I URL-encode XML too?
Yes, the XML URL Encode page encodes XML for URLs and query strings.
Related Tools
Explore other XML and encoding tools: