Replace XML Keys
Replace XML keys (element and attribute names) that match a pattern with new keys — across the whole document in one go.
Input
Output
About Replace XML Keys
Replace XML Keys renames element and attribute names that match a search pattern across an entire document. Use exact text or regular expressions; structure, attributes and values stay untouched.
Features
How to Use
Examples
Renaming "product" to "item" renames every element in the sample.
Benefits
Frequently Asked Questions
Is my XML sent to a server?
No. Everything runs locally in your browser. Your data is never uploaded, stored or logged.
Can I download the result?
Yes — use the Download button below the output area, or Print / Save PDF for a printable copy.
More XML Tools
View AllHighlight XML Syntax
Free XML syntax highlighter that tokenises and colorises tags, attribu...
Convert PDF to XML
Extract text from a PDF file and output it as structured XML. Paste PD...
Display XML Statistics
Inspect any XML document: element count, attribute count, text nodes, ...
Convert XML to BXML
Encode an XML document into a compact binary XML (BXML) byte stream, s...
Find XML Keys
Find certain keys (element and attribute names) in an XML file. See ev...