Skip to content
ToolZone

Placeholder Image Generator

Generate a custom-sized placeholder image with your own text and background color, useful for mockups, wireframes, and testing layouts.

Runs in your browser. Nothing you enter or upload leaves your device.

Copy as data URL for <img src>

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Placeholder Image Generator

The Placeholder Image Generator draws a solid-color image at the exact dimensions you set, with its size or your own label printed in the middle. Designers and developers drop these into layouts, prototypes and templates while the real images are still being made.

How it works

The tool sets a canvas to your width and height, fills it with the background color, and writes the label centered in the text color. If you leave Custom text empty, the label is the dimensions, for example 600 × 400. The font size is 8% of the shorter side, with a minimum of 12 pixels, so the label stays proportionate on both banners and thumbnails.

Download PNG exports the canvas as a PNG file named after its size, such as placeholder-600x400.png. The copy button next to "Copy as data URL" copies a data:image/png;base64 string you can paste straight into an img src attribute.

How to use

  1. 1

    Enter a Width and Height, or click a preset such as 800x600 or 1200x630.

  2. 2

    Optionally type a label in the Custom text box.

  3. 3

    Choose Background and Text colors with the color pickers.

  4. 4

    Click Download PNG, or use the copy button to grab a data URL.

Worked examples

Default blog image slot

A 600 × 400 slot in a card layout.

Input
Width 600, Height 400, no custom text
Result
placeholder-600x400.png: gray background with "600 × 400" in white, 32px text

Font size = 8% of 400 = 32 pixels.

Social sharing image

Testing how a link preview will look.

Input
Preset 1200x630, text "Open Graph image", background #1e293b
Result
A 1200 × 630 PNG with the label in 50.4px text

8% of 630 is 50.4 pixels.

Limitations
Maximum size is 4000 × 4000 pixels. Only solid colors and a single line of text are supported; long text can run past the edges. Output is PNG only, and the copied data URL may reflect the previous settings if you copy immediately after a change; download the PNG if in doubt.
Assumptions
A plain sans-serif label is acceptable for mockups.
Privacy
Images are drawn in your browser and nothing is sent to a server.

Frequently asked questions

Can I specify the exact pixel dimensions I need?+

Yes. Width and height can each be any value from 1 to 4000 pixels.

Why use a placeholder image instead of a blank box?+

A real image at the target size behaves exactly like the final one in your layout, and the printed dimensions show collaborators what size to deliver.

What does the image say if I leave the text empty?+

It shows its own dimensions, for example 800 × 600.

Can I link to the placeholder instead of downloading it?+

There is no hosted URL, but you can copy the image as a data URL and paste it directly into HTML.

What file format is the download?+

PNG, named placeholder-WIDTHxHEIGHT.png.

Related tools