Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

URL Decode XML

Paste URL-encoded XML content and instantly decode and format it into readable XML

Your data never leaves your browser
URL-Encoded XML Input0 chars, 0 lines
Decoded XML Output0 chars, 0 lines
Ready·

Paste a percent-encoded XML string and get back clean, indented XML — decoded and formatted in one click. Pick your indentation style (2 spaces, 4 spaces, or tabs) and copy or download the result. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste Encoded XML
→
URL Decode + Parse
→
Formatted XML Output

The browser’s built-in decodeURIComponent() handles the percent-decoding first. Then the native DOMParser turns that string into an XML document tree, which gets re-serialized with your chosen indentation. If the decoded text isn’t valid XML, you still get the raw decoded string — nothing is thrown away.

Examples

SOAP API response stuck in a query string

Your API debugging tool captured the XML payload as a URL parameter. Time to decode it.

INPUT
%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%3E%3Csoap%3ABody%3E%3CGetPrice%3E%3CItem%3EWidget%3C%2FItem%3E%3C%2FGetPrice%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
OUTPUT
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetPrice> <Item>Widget</Item> </GetPrice> </soap:Body> </soap:Envelope>

Quick config snippet from a redirect URL

Short XML fragment pulled from a callback URL after OAuth.

INPUT
%3Cconfig%3E%3Ctoken%20expires%3D%222025-12-31%22%3Eabc123%3C%2Ftoken%3E%3C%2Fconfig%3E
OUTPUT
<config> <token expires="2025-12-31">abc123</token> </config>

RSS feed excerpt from a URL-encoded log entry

Server logs sometimes store XML payloads URL-encoded. Here’s a typical RSS fragment that got percent-encoded during logging.

INPUT
%3Crss%20version%3D%222.0%22%3E%3Cchannel%3E%3Ctitle%3EMy%20Blog%3C%2Ftitle%3E%3Citem%3E%3Ctitle%3EFirst%20Post%3C%2Ftitle%3E%3Clink%3Ehttps%3A%2F%2Fexample.com%2Fpost%2F1%3C%2Flink%3E%3Cdescription%3EHello%20%26amp%3B%20welcome%3C%2Fdescription%3E%3C%2Fitem%3E%3C%2Fchannel%3E%3C%2Frss%3E
OUTPUT
<rss version="2.0"> <channel> <title>My Blog</title> <item> <title>First Post</title> <link>https://example.com/post/1</link> <description>Hello &amp; welcome</description> </item> </channel> </rss>

Who Uses This

🔧 Backend Developers

Decoding XML payloads from API query strings and webhook callbacks during debugging.

🔍 QA Engineers

Reading SOAP responses captured in test logs where the XML got percent-encoded.

🛡️ Security Analysts

Inspecting URL-encoded XML in HTTP request logs to check for injection patterns.

📊 Data Engineers

Recovering XML config files stored as encoded strings inside databases or CSV exports.

Common Mistakes

Double-encoding the input

If your XML was encoded twice (e.g., %253C instead of %3C), one pass won’t fully decode it. Run the output through the tool a second time to catch the remaining layer.

Pasting plus signs instead of %20 for spaces

Form-encoded data uses + for spaces, but standard URL encoding uses %20. If your decoded XML still shows plus signs where spaces should be, replace them first — this tool follows RFC 3986, not HTML form encoding rules.

Expecting valid XML from a partial fragment

If you only grabbed part of the encoded string (say, you missed a closing tag), the parser will flag it as invalid. The decoded text still appears — just without the pretty indentation. Check that you copied the full encoded payload.

Technical Details

Frequently Asked Questions

What is URL-encoded XML?

It’s XML where special characters have been replaced with percent codes so the data can travel safely inside a URL. Angle brackets become %3C and %3E, quotes turn into %22, and spaces become %20. You’ll run into this when XML is passed as a query parameter in API calls or stored in URL-based logs.

Does this tool format the XML after decoding?

Yes. Once the percent-encoding is reversed, the tool parses the XML and re-indents it so you can actually read the structure. You get to pick between 2 spaces, 4 spaces, or tabs. If the XML turns out to be invalid, the raw decoded text shows up instead — nothing is lost.

Can I decode XML that was encoded more than once?

The tool runs one decoding pass. If your XML was double-encoded (you’ll see things like %253C instead of %3C), just paste the first result back in and decode again. Two rounds will sort it out.

Does it handle CDATA sections and XML namespaces?

It does. The browser’s native DOMParser handles namespaces, CDATA blocks, processing instructions, and comments. All of those come through in the formatted output exactly as they should.

Is my XML data private when I use this?

Completely. The decoding and formatting happen in your browser with JavaScript. No data gets sent anywhere. You could disconnect from the internet and the tool would still work fine.

Share: