Placeholder Image Generator
Generate custom placeholder images for wireframes and mockups. Set size, colours, and custom text.
Enter a width, height, and optional text to generate a placeholder image as a PNG. Useful for mockups, wireframes, and lorem-ipsum layouts.
Set the background and text colours to match your brand, then download the PNG. Everything is drawn in your browser, with nothing uploaded.
What you can do
Any dimensions
From tiny avatars to full-width hero banners.
Brand colours
Set background and text colours to match your project.
Custom labels
Show the dimensions, or your own text such as "Hero Image".
Instant PNG
Drawn locally and downloaded in a single click.
Why Placeholder Images Matter in Design
Every designer and developer hits the same wall: you're building a layout, but the real images aren't ready yet. You could leave empty boxes, but that gives you zero sense of how the final page will actually feel. Placeholder images solve this by filling those gaps with correctly-sized graphics that show exactly where content will go.
Think of placeholders like scaffolding on a building site. They aren't the finished product, but they let you see the proportions, test the spacing, and catch layout issues before the real materials arrive. Without them, you're designing blind.
This generator creates placeholder images entirely in your browser using the Canvas API. Nothing gets uploaded, you pick your dimensions, colours, and optional text, then download a PNG instantly.
How This Generator Works
Everything happens on a single HTML canvas in your browser. When you click Generate, the tool creates a canvas at the exact width and height you entered, fills it with your chosen background colour, then draws your label (or the dimensions) centred in your chosen text colour. The font size scales with the shorter side of the image, so the text always fits neatly.
The canvas is then exported as a PNG using the Canvas API, and that PNG is what you download. PNG is lossless and handles flat colour perfectly, so a solid placeholder is tiny, often just a few kilobytes no matter how large the pixel dimensions are.
Because the drawing and the export both run locally, the generator keeps working offline once the page has loaded, and your dimensions, colours, and text are never sent to a server.
Common Placeholder Sizes
These are the dimensions you'll reach for most often, based on standard web and social media layouts:
| Use Case | Width | Height | Aspect Ratio |
|---|---|---|---|
| Hero Banner | 1920 | 1080 | 16:9 |
| Blog Featured Image | 1200 | 630 | ~1.9:1 |
| Open Graph / Social Share | 1200 | 630 | ~1.9:1 |
| Product Thumbnail | 400 | 400 | 1:1 |
| Avatar / Profile Picture | 200 | 200 | 1:1 |
| Instagram Post | 1080 | 1080 | 1:1 |
| YouTube Thumbnail | 1280 | 720 | 16:9 |
| Mobile App Icon | 512 | 512 | 1:1 |
What this means for you: Keep this table handy when starting a new project. Using the right placeholder size from day one means fewer layout surprises when real images arrive.
Designing for Retina Displays
Modern phones and laptops pack two or three physical pixels into every CSS pixel. If you generate a placeholder at its CSS size, it can look soft on those screens. The fix is to generate at the device pixel ratio (DPR) and then display it at the smaller CSS size. Multiply both dimensions by the ratio you are targeting:
| Display Slot (CSS) | Standard (1×) | Retina (2×) | High-DPI (3×) |
|---|---|---|---|
| Thumbnail 200×200 | 200×200 | 400×400 | 600×600 |
| Card 400×300 | 400×300 | 800×600 | 1200×900 |
| Hero 1200×630 | 1200×630 | 2400×1260 | 3600×1890 |
| Avatar 48×48 | 48×48 | 96×96 | 144×144 |
Rule of thumb: most phones and laptops are 2×, so generating at double your CSS dimensions covers the majority of devices without making the file unnecessarily large.
When to Use Placeholder Images
Wireframing
Low-fidelity layouts need image placeholders to communicate structure to stakeholders. Solid-colour blocks with dimension labels make proportions clear at a glance.
Frontend Development
When building components before assets are ready, placeholder images let you test responsive behaviour, lazy loading, and image containers with real dimensions.
Client Presentations
Custom-coloured placeholders that match a brand palette look far more professional than random stock photos or broken image icons in a mockup.
Documentation & Tutorials
When writing guides or README files, placeholder images demonstrate layout examples without requiring actual photography or licensed assets.
Worked Example: Mocking Up a Blog Layout
The situation: Sofia is designing a blog homepage for a client. The photographer hasn't delivered yet, but she needs to present the layout in a review tomorrow.
Step 1: Match the brand
She sets the background to the client's soft grey and the text to their navy, so the mockup reads as theirs rather than as a generic placeholder.
Step 2: Label each slot
For the hero she generates 1200×630 labelled "Featured Story", and for the three cards below she makes 400×300 placeholders labelled "Article Image". Everyone in the review knows what goes where.
Step 3: Test the real ratios
Because the placeholders use the final aspect ratios, she spots that her card heading overflows at 4:3 and fixes the spacing before any real photo exists.
Result
A convincing, on-brand mockup built in minutes. When the photos arrive she swaps each placeholder for the real image at the same dimensions, and nothing in the layout shifts.
Tips for Better Placeholders
Match your brand colours. Using your project's background and accent colours in placeholders gives stakeholders a much more accurate preview. Generic grey boxes tell them nothing about the final feel.
Add descriptive text. Instead of just showing "800 × 600", add labels like "Hero Image" or "Product Photo" so anyone looking at the layout knows what goes where.
Use the right aspect ratio. If your final images will be 16:9, don't test with 1:1 placeholders. Mismatched ratios hide cropping and overflow issues that'll bite you later.
Generate at the actual display size. Creating a 4000×3000 placeholder for a 400×300 thumbnail wastes filesize and doesn't test the real rendering path. Match the intended display dimensions.
This Tool vs URL-Based Services
| Feature | This Tool | URL Services (placehold.co, etc.) |
|---|---|---|
| Works offline | Yes, runs in browser | No, requires internet |
| Custom colours | Full colour picker | Limited to hex codes in URL |
| Custom text | Any text, font size | URL-encoded text only |
| Download file | PNG download | Linked via URL (no download) |
| Use in HTML/CSS | Need to host the file | Direct URL in src attribute |
Use this tool when you need a downloadable file with custom branding. Use URL-based services when you want quick inline placeholders in HTML prototypes that don't need to persist.
Common Mistakes
Shipping placeholders to production
Placeholders are for design and development. Replace every one with a real, optimised image before launch.
Wrong aspect ratio
Testing a 16:9 slot with a 1:1 placeholder hides cropping problems. Match the ratio your real images will use.
Low text contrast
If the background and text colours are too close, the label disappears. Keep enough contrast so it stays readable.
Generating far too large
A 4000px placeholder for a 400px slot wastes memory and hides real rendering. Generate at the display size, or double it for retina.
Forgetting alt text later
A placeholder has no meaningful alt text. When you swap in the real image, write a proper description so the layout stays accessible.
Unlabelled boxes
A wall of identical grey boxes tells reviewers nothing. Add a short label so each slot's purpose is obvious at a glance.
Related Tools
Image Resizer
Resize images to exact dimensions
Favicon Generator
Create favicons from any image
Image Compressor
Reduce image file sizes
Aspect Ratio Calculator
Calculate and convert aspect ratios
Colour Palette Generator
Generate colour schemes for your placeholders
Image to WebP
Convert images to WebP format
How to use this tool
Set your desired width and height in pixels
Choose background and text colours to match your project
Click Generate Image, then download the PNG
Common uses
- Creating correctly-sized placeholders for wireframes and mockups
- Testing responsive image layouts during frontend development
- Filling design prototypes before real photography is available
- Generating branded placeholder graphics for client presentations
Share this tool
Frequently Asked Questions
What is a placeholder image?
Can I customise the colours?
What format is the download?
What's the maximum image size?
Can I add custom text?
Are the images retina-ready?
Can I use these in production?
Does it work offline?
What common sizes should I use?
Is the image quality adjustable?
Do you store my images?
Can I generate SVG instead?
Results are for general informational purposes only and should be checked before use. They are not professional advice. See our Disclaimer and Terms of Service.