Double encoding
Running encode twice breaks decoding.
Fix: Decode first to check the state.
header • up to 320x100 / 728x90
Percent-encode or decode an XML payload for safe transmission in query strings and URLs
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
XML (Extensible Markup Language) is a strict, tag-based format used for documents, SOAP APIs, RSS feeds, and many enterprise and publishing systems.
XML URL Encoding applies encodeURIComponent (encode direction) or decodeURIComponent (decode direction) to your XML payload, producing a URL-safe string or reconstructing the original XML from one.
It is the standard approach for embedding XML inside query strings, webhook URLs, OAuth redirects, and tracking pixels.
<request path="/api/v1">ping</request>
%3Cnote%20id%3D%221%22%3EHello%3C%2Fnote%3E
Running encode twice breaks decoding.
Fix: Decode first to check the state.
URL query fields sometimes use + for space.
Fix: This tool uses RFC 3986 style (spaces → %20).
Yes — it follows encodeURIComponent rules, which align with RFC 3986.
Replace %20 with + manually if embedding in a form field.
No — run XML Parser separately for validation.
No — processing is client-side only.
Yes — stringify first, then URL-encode the resulting string.
Pair the URL encoder with parser, stringify, and general URL helpers. You can also browse the full Encoders & Decoders category for more options.
Encode or decode URL strings
Wrap an XML document in a JSON string literal for safe embedding in payloads
Parse and pretty-print XML documents with automatic validation and indentation
Escape or unescape XML special characters and numeric entities with one click
Encode JSON for URL parameters
Format and beautify XML documents online with proper indentation and line breaks. Validate XML syntax while formatting for clean, readable markup.
Encode XML for URL parameters
Encode JPEG, PNG, GIF, WebP, or SVG images into Base64 data URLs for inline CSS and HTML
Turn a list of ASCII / Unicode code points back into readable text
Convert ASCII text into a list of byte values (0–255)
Convert ASCII / Unicode text to a list of decimal character codes
Encode or decode binary data using Adobe / btoa Ascii85 (Base85) encoding