Placeholder image generator with custom size and text

This placeholder image generator makes a stand-in picture at the width and height you type in pixels. It fills the background with a color or leaves it transparent, and writes a label that shows the size, such as 1200 × 800, unless you type your own text. You download a PNG, JPEG or WebP file. It runs in your browser.

Image settings

Placeholder image settings
Background color

Use a six-digit hex color, such as #FFFFFF.

Text color

Use a six-digit hex color, such as #FFFFFF.

Leave empty for dimensions. Line breaks are kept; text does not wrap or shrink. Use a space for no label.

JPEG needs a solid background. JPEG and WebP use browser quality 92%; colors and text edges may change.

Choose your settings, then generate an image.

Actual output preview

Your generated image will appear here.

Generate an image to see its actual dimensions and file size.

Preview scaled to fit this panel. The downloaded image keeps its exact pixel dimensions. Checkerboard shows through transparent pixels and is not part of the downloaded image.

How to make a placeholder image

Type the size into Width (px) and Height (px), or select Square, Landscape or Portrait for 800 × 800, 1200 × 800 or 800 × 1200. Pick a Background color and a Text color with the color picker or a six-digit hex code such as #EAE5FF.

Leave Label empty to print the dimensions, or type your own words. Choose a Font family, Font size (px), Text alignment and Output format, then select Generate image. The Actual output preview shows the finished file.

  1. Enter a width and height, or choose a preset.
  2. Set the colors, label, font and format.
  3. Select Generate image.
  4. Check the preview, then select the Download button.

Changing any setting hides the old preview and download until you generate again, so the file always matches the settings on screen. Cancel stops a run and keeps your settings. Reset returns to 1200 × 800 with a lavender background and the dimension label.

Fitting the label on the image

The font size stays exactly as you set it. Text does not wrap or shrink to fit. Lines are centered top to bottom as a group, with 1.2 times the font size from one line to the next, and Text alignment puts each line against the left edge, in the center or against the right edge.

On a 200 × 200 image, the default 64 px label 200 × 200 is wider than the image. The tool still makes the file, and a warning under the preview says some text is clipped. At 32 px the same label fits and the warning stays hidden.

Press Enter in Label to start a new line, for example Hero image on one line and 1600 × 600 on the next. For a plain block of color with no text, type a single space. A 200 × 200 PNG made that way with a #222222 background holds that one color in every pixel.

What the downloaded file contains

The file has exactly the width and height you entered. The tool decodes the finished file and checks its size before it offers the download. The name follows the size, such as placeholder-1200x800.png or placeholder-200x200.jpg.

PNG keeps every color exactly and can hold transparent pixels. JPEG and WebP use the browser's encoder at quality 92%, so colors and text edges can shift slightly: a #EAE5FF background came back as 233, 229, 254 in a JPEG test. Transparent background works with PNG or WebP. JPEG cannot store transparency, so the tool asks you to turn it off or pick another format.

The line under the preview lists the pixel size, format, file size and background type. In Chrome, the default 1200 × 800 PNG came to 33 KB. The preview is scaled to fit the panel, and its checkerboard only marks transparent pixels.

Limits

The tool makes a file to download, not a hosted image link. To use the placeholder in a web page, save the file with your project and point the image tag at it. It draws one flat color and text, with no icon, person outline, photo or gradient.

Labels use DejaVu Sans, DejaVu Serif or DejaVu Sans Mono, which load from this site. They do not cover every script or emoji, so missing characters fall back to fonts in your browser or show as empty boxes. Text runs left to right.

Width and height must be whole numbers of 1 or more. The tool sets no size limit, but a very large image can pass what your browser's canvas or memory allows. The page then shows an error, creates no file and keeps your settings. It makes one image at a time.

Questions

What is a placeholder image?

A placeholder image is a stand-in that holds the space of a picture you do not have yet, in a mockup, wireframe, web page or print layout. It usually shows its own size, so everyone can see what the final image must measure. This tool writes that size as the default label, such as 1200 × 800.

How do I create a placeholder image?

Enter the width and height in pixels, or choose Square, Landscape or Portrait. Pick the background and text colors, leave Label empty for the size or type your own text, and choose PNG, JPEG or WebP. Select Generate image, check the preview, then use the Download button to save the file.

Where can I find placeholder images?

You can make one here at the exact size your layout needs instead of searching image sites. Type 200 for both width and height, and the tool gives you placeholder-200x200.png with the size printed on it. Set the font size to 32 px so the label fits inside a small image.

Can a placeholder image have a transparent background?

Yes, when you save it as PNG or WebP. Check Transparent background, and only the label is drawn; every other pixel is fully transparent. The preview shows those pixels over a checkerboard, which is not part of the file. JPEG cannot store transparency, so the tool asks you to switch it off or pick another format.

How do I make a dark or blank placeholder?

Type a dark hex code such as #222222 for the background color and a light one such as #FFFFFF for the text. For a blank image, type a single space in Label. The file then holds only the background color: every pixel of a 200 × 200 PNG made this way was the same dark gray.

Can I get a URL for my placeholder image?

No. The tool does not host images or create links. It makes a file on your device, which you can add to your project folder and reference from your HTML or CSS like any other image. The file name already includes the size, such as placeholder-600x400.png, so it is easy to find later.