Skip to content
>_ TrueFileSize.com

Sample HTML File Download — Free HTML5 Example Pages

Download free HTML example pages from 3KB to 1MB — forms, tables, landing pages, and HTML email template samples. Use these HTML test files for web scraping testing (Cheerio, Puppeteer), browser testing, email template testing, and HTML parser testing. All valid HTML5 with realistic content.

Generate custom HTML fileCreate up to 1GB locally in your browser

sample-5kb.html

5.0 KB

80 lines

File details and verification
Filename
sample-5kb.html
Exact size
5,112 bytes
Displayed size
5.0 KB
Catalog status
Valid catalog fixture
SHA-256
96b2f3079ccf0b3daaf8ea9eff9e4ac1019334cafbab17d89145fb0ee957e2a2
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
80
Note
simple-page
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-5kb.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-10kb.html

10.0 KB

200 lines

File details and verification
Filename
sample-10kb.html
Exact size
10,230 bytes
Displayed size
10.0 KB
Catalog status
Valid catalog fixture
SHA-256
7f125e9fd903aa554f7eb11a2a758b6f376e7c5f41a9437b1153895612a17310
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
200
Note
with-forms
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-10kb.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-50kb.html

50.0 KB

1,000 lines

File details and verification
Filename
sample-50kb.html
Exact size
51,190 bytes
Displayed size
50.0 KB
Catalog status
Valid catalog fixture
SHA-256
c6e093e7c52e4c9d340c77862288a6774eb08e73c7888bd80c94562aad297ee4
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
1,000
Note
with-tables
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-50kb.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-100kb.html

100.0 KB

2,000 lines

File details and verification
Filename
sample-100kb.html
Exact size
102,390 bytes
Displayed size
100.0 KB
Catalog status
Valid catalog fixture
SHA-256
97a6fc306b81677f286ac01f5e6699f3a5f8c0c6fee2ab386b27a53ba634b6e3
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
2,000
Note
with-media-embeds
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-100kb.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-500kb.html

500 KB

10,000 lines

File details and verification
Filename
sample-500kb.html
Exact size
511,992 bytes
Displayed size
500 KB
Catalog status
Valid catalog fixture
SHA-256
03740499eda70dfa58c986f9d216bfe850c8c573cd37dce71bcacbf3c2f7f50a
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
10,000
Note
multi-section-landing-page
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-500kb.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-1mb.html

1024 KB

20,000 lines

File details and verification
Filename
sample-1mb.html
Exact size
1,048,568 bytes
Displayed size
1024 KB
Catalog status
Valid catalog fixture
SHA-256
362d8eefde240cd6c9e183c93e1f20984bbbfc3cd8cd26dcb7bd66e3fa713bd3
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
20,000
Note
full-website
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-1mb.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-simple-page.html

3.0 KB

50 lines

File details and verification
Filename
sample-simple-page.html
Exact size
3,074 bytes
Displayed size
3.0 KB
Catalog status
Valid catalog fixture
SHA-256
2d74b4095c6c943d491161a5e74a152acba1e3a2f0e4aedb30f45386992f0c97
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
50
Note
minimal-html5
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-simple-page.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-form-page.html

8.0 KB

150 lines

File details and verification
Filename
sample-form-page.html
Exact size
8,182 bytes
Displayed size
8.0 KB
Catalog status
Valid catalog fixture
SHA-256
5288d5abe7e1ca064d0314e0ae84fc16edd79b284664327f589f96af6278a287
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
150
Note
contact-form
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-form-page.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-email-template.html

2.6 KB

250 lines

File details and verification
Filename
sample-email-template.html
Exact size
2,627 bytes
Displayed size
2.6 KB
Catalog status
Valid catalog fixture
SHA-256
41652232673665c285ded34fbd51cd169964f0dcd4b898f778491a9a953ec1f7
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
250
Note
email-template
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-email-template.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-table-page.html

20.0 KB

400 lines

File details and verification
Filename
sample-table-page.html
Exact size
20,470 bytes
Displayed size
20.0 KB
Catalog status
Valid catalog fixture
SHA-256
c6418fced26f414b52450c5cc834af02d4735969b82f3fc2825d599311c0799a
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
400
Note
data-table
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/html/sample-table-page.html

See how TrueFileSize generates and measures sample files, or review the editorial policy.

Use cases for sample HTML files

  • Testing web scrapers and crawlers (Cheerio, Puppeteer, Playwright)
  • Verifying HTML parsers and DOM libraries (jsdom, htmlparser2)
  • Testing email rendering in email clients (Outlook, Gmail)
  • Benchmarking browser rendering and paint performance
  • Testing HTML-to-PDF conversion tools (Puppeteer, wkhtmltopdf)
  • Validating accessibility tools and screen readers

HTML variants included

VariantElementsUse case
Simple pageheader, nav, sections, footerBasic scraping, DOM parsing
Form pageinputs, selects, textareas, checkboxesForm testing, Playwright/Cypress
Table pagethead, tbody, tr, td, thData extraction, table scraping
Media pageimg, video, iframe, lazy loadingMedia detection, lazy load testing
Landing pagehero, cards, grid, CTA buttonsFull-page rendering, performance
Email templatetable layout, inline CSSEmail rendering, template testing

How to parse HTML files

# JavaScript — Cheerio (server-side jQuery)
const cheerio = require('cheerio');
const $ = cheerio.load(html);
$('table tr').each((i, row) => {
  console.log($(row).text());
});

# JavaScript — jsdom (full DOM)
const { JSDOM } = require('jsdom');
const dom = new JSDOM(html);
const title = dom.window.document.querySelector('title').textContent;

# Python — BeautifulSoup
from bs4 import BeautifulSoup
soup = BeautifulSoup(html, 'html.parser')
for link in soup.find_all('a'):
    print(link.get('href'))

# Python — lxml (fast)
from lxml import html as lhtml
tree = lhtml.fromstring(html_content)
rows = tree.xpath('//table//tr')

# CLI — extract all links
grep -oP 'href="\K[^"]+' page.html

Technical specifications

StandardHTML5 (WHATWG Living Standard)
Extension.html, .htm
MIME typetext/html
EncodingUTF-8
ContentRealistic faker.js data (names, emails, products)
CSSEmbedded <style> tag (no external files)

Frequently Asked Questions

What is an HTML file?
An HTML (HyperText Markup Language) file is a text document with .html or .htm extension that web browsers render as a web page. It contains structured content using tags like <h1>, <p>, <table>, <form>, <img>, and <a>. HTML5 is the current standard (WHATWG Living Standard), adding semantic elements (header, nav, section, article, footer), multimedia (video, audio), and APIs (Canvas, Web Storage).
HTML vs HTM — What is the difference?
There is no difference — .html and .htm are the same format. The .htm extension originated from DOS/Windows 3.1 which limited extensions to 3 characters. Modern systems use .html (preferred). Web servers treat both identically. Our sample files use .html following current best practice.
How to create an HTML file?
Open any text editor (VS Code, Notepad++, Sublime), create a file with .html extension, add <!DOCTYPE html> at the top followed by <html>, <head>, and <body> tags. Save and open in a browser. Our HTML5 sample page file provides a complete starting template with proper meta tags, semantic elements, and embedded CSS — download it as a reference.
Can I use these for web scraping and browser testing?
Yes — that's the primary use case. Table pages have realistic data rows for extraction testing with Cheerio, BeautifulSoup, or lxml. Form pages have input/select/textarea elements for Playwright, Puppeteer, and Selenium automation. Media pages have img/video/iframe for detection testing. Email templates test rendering in Outlook, Gmail, and Apple Mail.
Are the sample HTML files valid HTML5?
Yes. Every file starts with <!DOCTYPE html>, includes <meta charset='UTF-8'> and viewport meta tags, uses semantic HTML5 elements (header, nav, main, section, footer), and passes W3C validation. CSS is embedded in a <style> tag — each file is fully self-contained with no external dependencies.

Other data formats

Related reading