XML Decoder
Decode XML entities back to their original characters.
What is XML Decoder?
XML Decoder is a straightforward utility that converts XML-encoded entities back into their original, human-readable characters. When XML data is encoded, special characters like <, >, &, ", and ' are replaced with entity references such as <, >, &, ", and '. This tool reverses that process, restoring the original text so it can be read, debugged, or processed normally.
For developers working with XML feeds, API responses, configuration files, or web scraping pipelines, encountering entity-encoded strings is a daily reality. Manually decoding these strings is tedious and error-prone — especially with numeric entities like < or hex entities like <. This tool handles all standard XML entity formats instantly, saving time and eliminating decoding mistakes.
How to Use
Using the XML Decoder is simple: paste your XML-encoded string into the input field and the decoded output appears immediately. The tool handles all named XML entities (<, >, &, ", '), decimal numeric entities (<), and hexadecimal numeric entities (<). The result is clean, readable text ready to copy and use.
The input can be a full XML document, a snippet, or just a single encoded string — the decoder works on whatever you provide. It processes the content as plain text, decoding every entity reference it finds without altering surrounding content. This makes it safe to paste entire XML payloads and extract just the decoded version without worrying about breaking structure.
One edge case to be aware of: if your XML contains double-encoded entities (e.g., &lt; which represents a literal < rather than <), the tool will only perform one pass of decoding. Run the output through the tool a second time if you need to decode multiple layers. Also note that custom or non-standard XML entities defined in a DTD will not be resolved, as the tool focuses on the standard XML 1.0 entity set.