PixNudge

XML formatter and validator

Pretty-print XML with clean indentation, check that it is well-formed and minify it by removing unnecessary whitespace and comments.

Input
Result

How it works

  1. 1

    Paste or type your input

    Paste text or code, type a value or open a file. Where a sample is offered, it shows how the tool works.

  2. 2

    Pick the options

    The result updates as you type. Switch modes or change the options to get exactly the output you need.

  3. 3

    Copy or download

    Copy the result to the clipboard with one click or download it as a file.

Why PixNudge

Nothing leaves your browser

Passwords, API keys, tokens, SQL queries and customer data are processed on your device and never sent to a server.

Instant results

There is no upload and no waiting: results appear while you type, even for large inputs.

Free, no sign-up

No account, no limits and no ads inside the tools. Bookmark the page and use it whenever you need it.

Frequently asked questions

Does the formatter validate my XML?

It checks that the document is well-formed: every tag is closed, nested correctly and attributes are quoted. If not, it shows the line and column of the first error. It does not validate against an XSD schema.

Is text content changed?

Text inside elements and CDATA sections is kept. Formatting only changes the whitespace between tags; minifying removes whitespace-only text between tags and, unless you keep them, comments.

Can I format SVG, RSS or config files?

Yes. SVG images, RSS and Atom feeds, Android layouts, Maven pom.xml files and .NET config files are all XML and can be formatted here.

More free tools