Free · Count what is inside XML

XML Statistics

See element, attribute, text, depth, and repeated-name totals in one small report.

  • Clear result
  • Private in your browser
  • Copy or download

Count what is inside XML

Paste text or open a file. The result stays in this browser tab.

XML to count13 lines · 378 characters

Tip: press Ctrl or Command + Enter to run.

XML statisticsResult ready
Elements9
Attributes7
Max depth3
XML STATISTICS

Elements: 9
Unique element names: 5
Attributes: 7
Text values: 6
Maximum depth: 3
Comments: 0
CDATA sections: 0

MOST USED ELEMENT NAMES
author: 2
book: 2
price: 2
title: 2
catalog: 1

Three simple steps

How to use it

  1. Paste XML or open a file from your device.
  2. Press Count XML to scan its elements and attributes.
  3. Use the top-name list to spot the most repeated parts.

Your file stays on this device

fast-xml-parser reads and changes the text inside this browser tab. Bookify does not upload or save it. For safety, this tool does not open XML files with a DOCTYPE.