XML Formatter
Format, beautify, minify, and validate XML in your browser. Pretty-print with adjustable indentation, collapse to compact form, and validate well-formedness with line/column error reports. 100% private.
About XML Formatter
Format, beautify, minify, and validate XML in your browser. Pretty-print with adjustable indentation, collapse to compact form, and validate well-formedness with line/column error reports. 100% private. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
Does this tool send my XML anywhere?
No. Formatting, minification, and validation all happen locally in your browser. Nothing is uploaded, tracked, or stored.
What does it validate?
It checks well-formedness — balanced tags, proper nesting, valid attribute quoting, and single root element — reporting the line and column of any error.
What extras does it have?
Extras: (1) Pretty-print with 2/4/8/tab indent; (2) Minify to one line; (3) Validate with line/column errors; (4) Copy/Download; (5) Character/line/byte counts; (6) Handles comments, CDATA, and processing instructions; (7) Large-input aware (works on sizable docs); (8) 100% offline.
Related tools
.bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side.
Add / Subtract Date Calculator
Add or subtract years, months, weeks, days, hours, minutes and seconds from a starting date/time. Calendar-day or business-day mode with custom weekend + holiday list. Month-end policy toggle (clamp to last day vs overflow). Repeat/series mode (e.g. every 2 weeks x 10) with CSV export. Shareable URL. 100% client-side.
Add Line Numbers
Add sequential line numbers to text. Custom format, padding, start, step. Skip empty lines.