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 AllConvert XML to TOML
Convert an XML configuration file into a clean, valid TOML configurati...
Generate XML Art
Convert an image into a valid ASCII-art-like XML document — every row ...
Convert XML to a Table
Draw a clean HTML table from repeating XML records. Auto-detect rows a...
Extract All XML Comments
Extract only the comments from an XML document — every annotation in o...
Find XML Values
Find certain values in an XML file — text content and attribute values...