All Tools View Categories Blog About Contact Privacy
CompressPrivate
Compress Anything.
Images · PDF · Video · Audio · Docs
🔒 100% Private ⚡ Free Forever ☁️ No Uploads
Compress Free

Display XML Statistics

Inspect any XML document: element count, attribute count, text nodes, comments, max depth, tag frequency and average children — instantly, in your browser.

Input
Output

About Display XML Statistics

Display XML Statistics gives you a full breakdown of any XML document: how many elements, attributes, text nodes, comments, CDATA blocks and processing instructions it contains, plus the maximum nesting depth, per-tag frequency and average number of children per element.

Features

  • Count elements, attributes, text nodes, comments, CDATA and processing instructions
  • Show maximum and average nesting depth
  • Per-tag frequency breakdown with sorted table
  • Element count grouped by child count
  • Copy or download the full report as plain text
  • How to Use

  • Paste your XML in the input box, or click Open file.
  • Optionally tick "Include per-tag breakdown" for tag frequency.
  • Watch the live report update as you type.
  • Copy or download the report when ready.
  • Examples

    The sample catalog report shows 17 elements, 2 attributes, 13 text nodes, a max depth of 3 and 2 product rows.

    Benefits

  • Understand a document structure before you transform it
  • Spot deeply nested or bloated XML fast
  • Perfect for QA and documentation
  • Frequently Asked Questions

    Is my XML sent to a server?
    No. Everything runs locally in your browser. Your data is never uploaded, stored or logged.
    Can I download the result?
    Yes — use the Download button below the output area, or Print / Save PDF for a printable copy.

    More XML Tools

    View All