Test Image Generator — Any Ratio, Size & Quality
Generate test images at any aspect ratio, resolution, pattern, quality or exact file size.
A test image generator creates images at whatever aspect ratio, resolution, pattern and quality you need — 16:9, 1:1, 9:16, Open Graph 1.91:1 or a custom size — as PNG, BMP, GIF, JPEG or WebP. Use them to check responsive layouts, upload limits, thumbnail cropping and compression behaviour.
Runs in your browser- Ratios
- 11 presets from 1:1 to 21:9, plus A4 portrait and landscape and fully custom dimensions
- Resolution
- Up to 12,000 px on the longest edge, capped at 40 megapixels
- Patterns
- Solid, linear and radial gradients, checkerboard, grid, stripes, colour bars, mesh and noise
- Exact sizing
- PNG output can be padded to a precise byte count via a metadata block
- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why would I want noise instead of a gradient?
How do I get a file of an exact size?
What are the colour bars for?
How to use the sample image generator
- 1Choose the aspect ratio.
- 2Set the longest edge.
- 3Set the width.
- 4Set the height.
- 5Choose the pattern.
- 6Pick the primary colour.
- 7Pick the secondary colour.
- 8Set the pattern scale.
- 9Choose the format.
- 10Set the quality.
- 11Turn "Pad to an exact file size" on or off as needed.
- 12Set the target file size.
- 13Choose the unit.
- 14Set the how many images.
- 15Enter or paste your seed.
- 16Press Run, then download the result when it is ready.
Embed this tool
Put the working sample image generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Image ConverterConvert images between PNG, JPG, WebP and AVIF without uploading them anywhere.Sample File GeneratorCreate valid test files of an exact size in 22 formats — text, data, code, images, audio, PDF and ZIP.AVIF ConverterConvert images to and from AVIF in your browser, with a real encoder check so you never get a PNG renamed to .avif.Image to PDF ConverterCombine JPG, PNG or WebP images into a single PDF document.Compress PDFReduce PDF file size by re-rendering pages at a lower resolution and quality.PDF to Image ConverterConvert PDF pages into PNG or JPG images at any resolution.
Last updated
More samples & mock data