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
Verified file details
- Filename
- sample-5kb.html
- Exact size
- 5,120 bytes
- Displayed size
- 5 KB
- 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
Verified file details
- Filename
- sample-10kb.html
- Exact size
- 10,240 bytes
- Displayed size
- 10 KB
- 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
Verified file details
- Filename
- sample-50kb.html
- Exact size
- 51,200 bytes
- Displayed size
- 50 KB
- 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
Verified file details
- Filename
- sample-100kb.html
- Exact size
- 102,400 bytes
- Displayed size
- 100 KB
- 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
Verified file details
- Filename
- sample-500kb.html
- Exact size
- 512,000 bytes
- Displayed size
- 500 KB
- 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
Verified file details
- Filename
- sample-1mb.html
- Exact size
- 1,048,576 bytes
- Displayed size
- 1 MB
- 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
Verified file details
- Filename
- sample-simple-page.html
- Exact size
- 3,072 bytes
- Displayed size
- 3 KB
- 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
Verified file details
- Filename
- sample-form-page.html
- Exact size
- 8,192 bytes
- Displayed size
- 8 KB
- 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
Verified file details
- Filename
- sample-email-template.html
- Exact size
- 12,288 bytes
- Displayed size
- 12 KB
- 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
Verified file details
- Filename
- sample-table-page.html
- Exact size
- 20,480 bytes
- Displayed size
- 20 KB
- 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.