Notification
Go to Home All Tools Compare Glossary Blog Contact

Sample File Library & Dummy File Generator

Download sample PDF, image, Word, Excel, CSV, JSON, audio and ZIP files in exact sizes from 1 KB to 100 MB, plus edge-case files for upload and validation testing.

Client-Side (Private)
35File types
1 KB → 100 MBExact sizes
0 bytesUploaded to a server
FreeNo signup, no limits
Click a size to preview & download

How to download a sample file in 4 steps

  1. Pick a file type. Browse the cards or type something like “5mb pdf” or “jpg” in the search box. Filter by category or by size range.
  2. Choose an exact size. Click a preset from 1 KB to 100 MB or enter a custom size. Switch between binary (1 MB = 1,024 KB) and decimal (1 MB = 1,000 KB) to match your server.
  3. Preview and download. Check the preview, the magic bytes and the exact byte count, then press Download. The file is created in your browser and saved as easytoolio-sample-….
  4. Use it in your test. Copy a ready-made cURL, Playwright, Cypress, Laravel or Python snippet, or download a limit pack with files at limit −1, limit and limit +1 byte.

Common test scenarios and the file to use

Jump straight to the right file. Each link opens the download dialog for that file.

What you are testingUse this file
Avatar upload with a 1 MB limit1 MB PNG or 1 MB JPG
Résumé or document upload with a 5 MB limit5 MB PDF
Image just over a 10 MB limit10 MB JPG (use the limit pack for +1 byte)
CSV import and streaming parsers10 MB CSV or 5 MB NDJSON
Word and Excel attachments1 MB DOCX, 1 MB XLSX
Progress bar, timeout and slow network100 MB random binary (cannot be compressed)
Multi-page PDF renderingPDF with 1 to 100 pages
Empty file validation0-byte file
Extension vs content (MIME sniffing)PNG named .jpg
Corrupt or truncated uploadsTruncated PDF, corrupt PNG
Filename handlingUnicode name, 255-character name, spaces and brackets

Sample files for every upload, parser and validation test

Each file is generated locally at the exact size you pick, so a “5 MB PDF” is really 5,242,880 bytes. Use them to test file size limits, MIME and magic-byte checks, progress bars, timeouts, previews and importers.

Documents
PDF (1 to 100 pages), Word DOCX, Excel XLSX, RTF, TXT and Markdown sample files.
Images
PNG, JPG/JPEG, WebP, AVIF (where the browser can encode it), GIF, animated GIF, BMP, TIFF, SVG and ICO test images.
Data & Code
CSV, TSV, JSON, NDJSON, XML, YAML, SQL, HTML and LOG files for import, parser and API testing.
Video
MP4 and WebM sample videos, recorded by your browser, for player, thumbnail and upload tests (needs a browser that can record video).
Audio
WAV and MP3 sample audio files for player, transcoder and upload tests.
Archives & Binary
ZIP archives and random binary (.bin) files for upload speed and size limit tests.
Edge Cases
0-byte file, no extension, spoofed extension, truncated PDF, corrupt PNG, unicode and 255-character filenames, UTF-8 BOM CSV.
Education

How to Use Sample Files for Upload and Validation Testing

01

Why Exact File Sizes Matter

Upload forms, APIs and CDNs enforce hard limits such as 1 MB for an avatar, 5 MB for a résumé or 10 MB for an attachment. A file that is only roughly the right size hides off-by-one bugs. Every file here is padded to the exact byte count you pick, so a 5 MB PDF is 5,242,880 bytes in the binary standard (1 MB = 1,024 KB) or 5,000,000 bytes in the decimal standard. Switch the size standard to match how your server or cloud provider counts.

02

What to Test With Each File Type

Use PDF and DOCX files to test document uploads and viewers, MP4 and WebM files to test video uploads and players, PNG, JPG and WebP files to test image pipelines, resizing and thumbnails, CSV and JSON files to test importers and streaming parsers, and MP3 or WAV files to test media players. The ZIP and random binary files are ideal for checking progress bars, timeouts, request body limits and virus-scan queues, because random bytes cannot be compressed in transit.

03

Edge Cases That Break Real Uploads

Most upload bugs come from unusual files rather than large ones. The Edge Cases category gives you a 0-byte file, a file with no extension, a PNG renamed to .jpg to test magic-byte checks, a truncated PDF, a corrupt PNG header, filenames with spaces and brackets, unicode characters, a 255-character name and a CSV with a UTF-8 byte-order mark. Run them through your form to confirm it rejects or handles each one gracefully.

04

How to Test File Upload Limits (Boundary Testing)

The classic upload bug is an off-by-one in the size check: a form that allows up to 5 MB but rejects a file of exactly 5 MB, or accepts one byte too many. Use the Limit pack button to download three files at once: limit minus 1 byte, exactly the limit, and limit plus 1 byte. The first two must be accepted and the third rejected. Test the same boundary on the client, the web server (for example client_max_body_size or upload_max_filesize), the application validator and any CDN or proxy in front of it, because each layer can have a different limit.

05

Automating Upload Tests With Playwright, Cypress, cURL and Laravel

Open the Use this file in your tests panel to copy a ready-made snippet for cURL, Node.js fetch, Playwright setInputFiles, Cypress selectFile, Laravel UploadedFile::fake() or Python requests. Download the file once, commit it to your test fixtures folder and reference it by name, so your continuous integration run uses the same bytes every time. Each download also shows a SHA-256 checksum, which lets you confirm that a file survived an upload and storage round trip unchanged.

06

Binary vs Decimal Megabytes

A binary megabyte (MiB) is 1,048,576 bytes and is what most operating systems, PHP and many frameworks use. A decimal megabyte is 1,000,000 bytes and is what many storage vendors and some APIs use. A limit written as 5 MB can mean either, so test both: generate the file in each standard and confirm how your stack behaves. The gap is about 2.4 percent at the kilobyte level and about 4.9 percent at the megabyte level, enough to flip a pass into a fail.

07

Which Browser Should I Use?

Most file types work in any modern browser. WebP and AVIF are encoded by your browser itself, so they depend on browser support: use a recent desktop version of Chrome, Edge or Firefox for WebP, and try the latest desktop Chrome or Edge for AVIF. If a type is unavailable the tool tells you, offers a link to copy so you can open the page elsewhere, and suggests alternative formats you can download right away. Very large files, such as 100 MB, work best on a desktop browser with free memory.

08

Private by Design

Sample files are created by JavaScript running in your own browser tab. No file is stored on a server and nothing you pick is transmitted, so it is safe to use on internal and staging environments. The files contain only synthetic placeholder content, never personal data. Very large files such as 100 MB need free memory on your device, so close heavy tabs if a download fails.

Good to know

Questions, answered

Quick answers about how this tool works.

Yes. Every file is padded using a format-safe container (PNG text chunks, JPEG comment segments, PDF stream objects, ZIP entries, GIF comment extensions and so on), so a 5 MB file is exactly 5,242,880 bytes in the binary standard or 5,000,000 bytes in the decimal standard. The exact byte count is shown before you download.

Yes. The PDFs have a correct cross-reference table, the DOCX and XLSX files are real Office Open XML packages, the images decode in browsers and image editors, and the MP3 and WAV files are playable. Padding is added in places readers ignore, so the content stays valid.

No. Files are generated by JavaScript in your own browser tab and saved straight to your device. Nothing you choose is sent to EasyToolio, which makes the tool safe to use with internal or staging environments.

Operating systems and many upload limits count in binary units where 1 KB is 1,024 bytes and 1 MB is 1,048,576 bytes. Some cloud providers and storage vendors count in decimal units. Use the size standard switch at the top to generate files that match whichever your system uses.

Was this tool helpful?

Be the first to rate Sample File Library & Dummy File Generator

Tap a star to rate instantly

Formula Reference

Formula

File Size Formula (KB, MB and GB to Bytes)

Upload limits, storage quotas and bandwidth plans are all written in kilobytes, megabytes and gigabytes, but a computer only count...

What do you need to work out next?

Search 276+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI