Formatters

XML Pretty

Indent an XML document.

How to use XML Pretty

XML Pretty — Indent an XML document so each element starts on its own line. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in XML. This field is required.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is XML Pretty used for?

Use it when a feed, config, or SOAP body is one long line and you need to read the tags.

How do I use the free online XML Pretty tool?

Fill in XML. This field is required. Click Run and copy the result under the form.

What can I paste or upload into XML Pretty?

Paste one XML document. Comments and the XML declaration are kept. The file must be well formed.

What output does XML Pretty give me?

Indented XML. Attributes stay on the opening tag. Text is escaped. An empty or broken document returns an error.

Is XML Pretty free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

Does this validate against a schema?

No. It only checks that the tags nest and then reprints the document. It does not apply XSD or DTD rules.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.