Placeholder Image Generator

Create a colored rectangular image with text, at any size you need, for mockups and prototypes.

What it's for

A placeholder image is a "reserved space" image — a colored rectangle, usually showing the dimension in pixels — used to fill in for a real image while a layout, mockup or prototype is being developed, before the final image is ready.

How to use it

Enter the width and height in pixels, choose the background and text colors (in hex, e.g. #cccccc), and optionally a custom text (by default it shows the dimension, e.g. "600 × 400"). Download as PNG or JPG.

100% in your browser

The image is drawn entirely in your browser using the Canvas API — no file is ever uploaded to a server.

Sizes worth keeping on hand

Generate 1280 × 720 for 16:9 blocks, 1200 × 630 for social sharing previews and 150 × 150 for avatars. For high-density screens, make the file twice the displayed size: a 300 × 200 slot needs a 600 × 400 image to look sharp.

PNG or JPG for a flat color block

Solid rectangles compress better as PNG and stay clean. In JPG, the lettering can pick up faint halos around the glyphs. Pick a strong contrast between background and text so the label is still readable in small thumbnails.

Frequently asked questions

Is there a size limit?

Yes, between 1 and 5000 pixels per dimension — enough for the vast majority of web layout uses, without freezing the browser with a giant image.

Can I use this instead of a service like placeholder.com?

Yes — the advantage here is that the image is generated and downloaded locally in your browser, without depending on an external service (which could go down) or loading the image over the internet every time the page opens.