RakkoTools

XML Formatter

Formats a XML string/file with indentation level

Add to favorite
Indentation level:
Text mode:
Remove comment:

What this tool can

The XML Formatter is a tool to format XML strings or files by changing the indentation level, trim text, remove comment.

    This tool gives the following options:
  • Indentation level: 2 spaces, 3 spaces, 4 spaces, Tab delimited, Compact mode
  • Text mode: Trim (left and right trimming), Normalize (trim and normalize spaces to a single space), Trim whitespace (trim only if whitespace, otherwise keep literal)
  • Remove comment: Keep/Remove

Useful for

  • When you want to make the XML string or XML file more beautiful for readable.
  • When you want to trim and compress the XML string or XML file to reduce the size when transmission.

related tools