Random Image Generator

Create exact-size random PNG, JPEG, or WebP test images

Random Image Generator

Create exact-size random PNG, JPEG, or WebP test images

About Random Image Generator

Random Image Generator creates valid PNG, JPEG, and WebP files with an exact requested byte size. Choose automatic or custom dimensions for upload tests, storage tests, demos, and development fixtures.

How to use

Create an exact-size image in three steps:

  • Choose PNG, JPEG, or WebP and enter the target file size.
  • Use automatic dimensions or enter a custom width and height.
  • Generate the image, check its exact byte count, and download it.

How it works

The generator creates a normal visible image first, then safely expands its file structure to reach the exact requested byte count:

  • Convert the selected decimal or binary size into an exact byte target and choose automatic or custom dimensions.
  • Draw a procedural random pattern and encode it as PNG, JPEG, or WebP in your browser.
  • In automatic mode, reduce the dimensions and retry when the encoded image is too large, down to 1 × 1 if necessary.
  • Add format-valid, non-visual padding data until the file matches the target byte count exactly.

Private by design

The image and exact-size file are created entirely in your browser. Nothing is uploaded.

Random image settings

Create a valid PNG, JPEG, or WebP with an exact file size. Everything is generated locally in your browser.

File-size presets

Auto dimensions for this size: 707 × 707 px