Placeholder Image Generator
Generate custom placeholder images with any dimensions, colors, and text. Download or copy as Base64.
Generate placeholder images in any size, color, and format — PNG, JPG, WebP, or Base64 data URI. Pick a preset for social banners, thumbnails, or avatars, or type custom dimensions up to 4096 px. And everything runs in your browser. Nothing gets uploaded.
How It Works
You enter width, height, background color, and text. The browser draws a rectangle on an invisible canvas element, stamps your label in the center, then converts the result to your chosen format. The whole thing takes milliseconds—no server round-trip, no waiting.
Examples
Blog Post Featured Image
Your WordPress theme needs a 1200×628 featured image slot filled while you write the draft.
Width: 1200
Height: 628
Background: #e2e8f0
Text: "Featured Image"
1200×628 PNG file
Light gray box with
"Featured Image" centered
E-commerce Product Grid
Filling a 4-column product grid while the photographer is still shooting. Square thumbnails, brand color background.
Width: 400
Height: 400
Background: #1e293b
Text color: #f8fafc
Text: "Product"
400×400 PNG
Dark slate square with
white "Product" label
Data URI for an Email Template
Email clients block external images by default. A Base64 data URI baked into the HTML means your placeholder shows up without the recipient clicking "load images."
Width: 600
Height: 200
Background: #fef3c7
Text: "Banner"
Output: Copy Data URI
data:image/png;base64,iVBOR...
(paste into <img src="...">)
Who Uses This
Drop placeholder images into component libraries and test responsive breakpoints before real assets arrive.
Fill Figma-to-HTML prototypes with correctly sized rectangles so stakeholders focus on layout, not missing photos.
Generate inline Base64 images for email templates that render even when external images are blocked.
Create quick visuals for class projects, slide decks, or coding assignments without hunting for stock photos.
Common Mistakes
An 800×800 placeholder won't match Twitter's 2:1 card ratio. Check the platform's spec first—or grab one of the built-in presets.
Add obvious text like "REPLACE ME" instead of subtle dimension labels. Gray boxes blend in; bright colors and loud labels don't ship by accident.
JPG compression smudges crisp edges. Stick with PNG when your placeholder has text or hard lines. JPG is better for photographic placeholders where file size matters more than pixel-perfect edges.
Technical Details
- Processing: 100% client-side (Canvas API)
- Max Dimensions: 4096 × 4096 pixels
- Output Formats: PNG, JPG, WebP, Base64, Data URI
- Browser Support: Chrome, Firefox, Safari, Edge
- No Dependencies: Pure JavaScript, no external libraries
Frequently Asked Questions
What size should a placeholder image be?
Match the final image dimensions your design calls for. If the hero banner will be 1920×1080, make the placeholder 1920×1080 too. That way you catch layout shifts and overflow issues early instead of discovering them after the real photos land.
Is it better to use a placeholder service URL or a local image?
Third-party placeholder services break if the server goes down or you're offline. A locally generated image file (or an inline data URI) works every time, no external dependency. For production mockups, local is almost always the safer call.
When should I use Base64 instead of a file download?
Base64 is great for small images under about 10 KB—think icons, tiny thumbnails, or email templates. Above that, the encoded string gets huge and actually slows your page down. For anything over 50 KB, download the file and serve it normally.
Can I generate transparent placeholder images?
This tool generates solid-color backgrounds, so the output is always opaque. If you need transparency, download the PNG and remove the background in a separate editor. For most placeholder use cases though, a solid color actually shows the layout boundaries better than a transparent box would.
Are placeholder images I create here free to use commercially?
Yes. The image is generated entirely on your device—it never touches a server. It is a simple colored rectangle with text, so there are no copyright issues. Use it in client work, internal tools, open-source projects, whatever you need.