Sample HTML, CSS and JS files: free download

What are HTML, CSS and JavaScript files?

HTML files hold a web page's structure and content, CSS files its presentation, and JavaScript files its behaviour. All three are plain text, usually UTF-8. Over HTTP, a browser decides how to treat each one from its Content-Type header, not from the file extension.

Web and interchange formats: a complete HTML page, a stylesheet, a script, Markdown, TSV, an iCalendar event and a vCard contact. Each is small, valid and generated from source.

11 ready-made web test files

FileSizeWhat it catchesDownload
data.tsv80 bytesImporters that treat TSV as "CSV with commas" and split on the wrong delimiter, or that collapse runs of whitespace and merge the tab-separated columns.download
contact.vcf137 bytesContact import. Includes a non-ASCII organisation name to catch importers that assume ASCII, and the CRLF line endings vCard requires.download
script.js280 bytesJS parsers, bundlers and transpilers. Uses ES2017+ features so it catches tooling stuck on older syntax.download
styles.css357 bytesCSS parsers, minifiers and linters. Exercises custom properties and @media/@keyframes at-rules.download
calendar.ics374 bytesCalendar import (Google, Outlook, Apple). CRLF line endings are mandatory in iCalendar, and this file uses them - a good check for code that normalises newlines and breaks the format.download
page.html413 bytesHTML preview, sanitiser baselines and "render to PDF" pipelines. This one is inert and must survive sanitisation intact - contrast with the XSS payloads in the security set.download
README.md413 bytesMarkdown renderers and converters. A fenced code block that itself contains Markdown catches renderers that fail to treat fenced content as literal.download
firmware-3.1-notes-v1.md491 bytesNear-duplicate retrieval: both versions score almost identically for the question, and only the front matter says which is current. Pair with firmware-3.1-notes-v2.md.download
firmware-3.1-notes-v2.md524 bytesThe correct source for the sample interval. A pipeline that drops front matter cannot tell it from v1.download
html-xss-payloads.html855 bytesHTML sanitisers, rich-text editors and preview renderers. Feed this through your sanitiser and diff the output: anything executable that survives is a finding.download
support-faq.html1.1 KBTag-stripping extraction (BeautifulSoup get_text, for one) keeps the hidden notice. Only an extractor that applies CSS, such as a browser's innerText, drops it.download

Every file is generated from source (no third-party copyright) and each has its own page with a published SHA-256 you can verify after download.

Questions

Where can I download a sample HTML file?

The HTML page below is a complete, valid document. Use it to test renderers, converters and upload filters.

Do you have a sample .ics or .vcf file?

Yes, both. The iCalendar file contains a timed event and an all-day marker; the vCard is a single fictional contact using reserved example.test and 555-01xx values.

Other formats

Sample SQLite database fileSample font files (TTF, WOFF, WOFF2)Sample MP3, WAV and MP4 filesSample GeoJSON, GPX and KML filesSample EML and MSG email filesSample EPUB fileLarge test files (1 KB to 2 GB)Sample PSD, DXF, STL and OBJ files