HTML Size Analyzer

Analyze HTML size and catch bloat like inline images, large React hydration state, or code duplication.

Browsers assign a high priority to HTML document requests, so low-priority content like embedded images or JSON data can be prioritized over resources that are immediately render-blocking.

Duplicated HTML usually compresses well when sent over the network. However, very large HTML responses (multiple megabytes) can still take a long time to parse.

Paste HTML Code

Full Size
Uncompressed HTML
101 KB
Compressed Size
Sum By Category
15.5 KB
Compressed Size
Full HTML
12.4 KB
Show Values:
<style> #text
18.46%
2.85 KB
<script> #text
14.22%
2.20 KB
<span> #text
10.97%
1.70 KB
<img> alt
6.17%
976 B
<dd> #text
4.45%
704 B
<a> href
4.17%
659 B
<script> src
2.27%
359 B
<img> src
2.19%
347 B
<meta> content
2.1%
332 B
<link> href
1.82%
288 B
<img> srcset
1.81%
286 B
<a> #text
1.41%
223 B
<li> class
1.17%
185 B
<script> id
0.97%
153 B
<div> class
0.85%
134 B
<span> class
0.84%
133 B
<input> name
0.78%
123 B
<link> rel
0.75%
119 B
<input> class
0.74%
117 B
<ul> #text
0.68%
107 B
<style> id
0.68%
107 B
<dt> #text
0.63%
99.0 B
<meta> name
0.63%
99.0 B
<img> sizes
0.58%
91.0 B
<div> #text
0.56%
89.0 B
<meta> property
0.54%
86.0 B
HTML Comment
0.54%
86.0 B
<body> class
0.54%
85.0 B
<textarea> class
0.51%
80.0 B
<li> #text
0.5%
79.0 B

The HTML Size Analyzer parses the HTML and groups content size by tag and attribute name.

The #text category includes text content that's a direct child of the element. It also includes the tag itself, but not the attributes of the tag.

The full text content of each category is compressed separately with gzip. The individual item size is never shown compressed.

Optimize Website Performance

DebugBear is a web performance monitoring tool that helps you keep your website fast and deliver a great user experience.

Identify slow pages on your website
Improve page speed and Core Web Vitals
Get alerted to regressions

Get Comprehensive Performance Insights:

Synthetic monitoring ?More icon
Google CrUX data ?More icon
Real user monitoring (RUM) ?More icon

You are using an old browser that is not supported anymore. You can continue using the site, but some things might not work as expected.