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 browsersample-5kb.html
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
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
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
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
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
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
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
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
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
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
| Variant | Elements | Use case |
|---|---|---|
| Simple page | header, nav, sections, footer | Basic scraping, DOM parsing |
| Form page | inputs, selects, textareas, checkboxes | Form testing, Playwright/Cypress |
| Table page | thead, tbody, tr, td, th | Data extraction, table scraping |
| Media page | img, video, iframe, lazy loading | Media detection, lazy load testing |
| Landing page | hero, cards, grid, CTA buttons | Full-page rendering, performance |
| Email template | table layout, inline CSS | Email 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.htmlTechnical specifications
| Standard | HTML5 (WHATWG Living Standard) |
| Extension | .html, .htm |
| MIME type | text/html |
| Encoding | UTF-8 |
| Content | Realistic faker.js data (names, emails, products) |
| CSS | Embedded <style> tag (no external files) |
Frequently Asked Questions
What is an HTML file?
HTML vs HTM — What is the difference?
How to create an HTML file?
Can I use these for web scraping and browser testing?
Are the sample HTML files valid HTML5?
Other data formats
Related reading
Mocking REST APIs with JSON Fixtures
Fast frontend iteration without a backend. MSW, json-server, and sample fixtures for users, products, and nested objects. Copy-paste examples.
Sample JSON Data for API Testing and Mocking
Free sample JSON files for testing REST APIs. Users, products, nested objects, GeoJSON, and API response wrappers with code examples.
Seeding Test Databases with Sample Data — SQL, JSON, CSV
How to seed development and staging databases using sample SQL dumps, JSON files, and CSV imports from TrueFileSize. Covers PostgreSQL, MySQL, SQLite, MongoDB, and Prisma.