Skip to content
Trình tạo ảnh giữ chỗ
Tools

Trình tạo ảnh giữ chỗ

Mới

Tạo ảnh giữ chỗ tùy chỉnh kích thước với màu sắc và nhãn do bạn chọn.

Placeholder preview

600 × 400 px · SVG stays sharp at any size; PNG & WebP keep transparency, JPG does not.

Dimensions (px)
Aspect ratio
Common sizes
Colors
Background
Text

Runs entirely in your browser. Nothing is uploaded.

Generate a Placeholder Image in Seconds

This placeholder image generator builds custom dummy images for mockups, wireframes, prototypes and front-end development — entirely in your browser. Set the width and height, choose a background and text color, add an optional label, and you have a clean placeholder ready to download or paste straight into your code.

Unlike hosted services that render images on a server (placehold.co, dummyimage.com, via.placeholder.com), every image here is generated locally with SVG and the HTML Canvas API. That makes it instant, private, free, and able to keep working offline — no requests, no rate limits, and nothing is ever uploaded to any server.

Step-by-Step: How to Create a Custom Placeholder Image

Creating a placeholder takes under 10 seconds: 1) Type your width and height in pixels, or select a size preset (1200×630 for OG images, 1080×1080 for Instagram, 1280×720 for video thumbnails, 256×256 for avatars). 2) Pick your background color using the color picker, or select a palette preset like "Gray" for the classic placeholder look. 3) Optionally add custom text — if left blank, the image automatically shows its own dimensions. 4) Choose your export format: SVG for web use (smallest, sharpest), PNG for raster with transparency, JPG or WebP for photo-compatible formats. 5) Click Download to save the file, or switch to the Code tab to copy a data URI, an <img> tag, or CSS background rule ready to paste into your project.

SVG, PNG, JPG or WebP — Choosing the Right Format

For a flat color box with a label, SVG is usually the right pick: it's only a few hundred bytes, stays sharp at any resolution, and embeds cleanly as a data URI. It's the default here, and a step up from the PNG-only output of most placeholder tools. SVG data URIs also work in every modern browser and email client.

Need a raster file instead? Export PNG (with full transparency support), JPG for the most broadly compatible format, or WebP for the smallest raster file size. Whatever you choose, the live preview shows exactly what you'll get before you save it — no surprises when you open the file.

Why This Beats placehold.co and Other Hosted Services

Services like placehold.co, dummyimage.com, and via.placeholder.com hand you a URL that hotlinks their server. This creates dependencies: if their service goes down, is rate-limited, or gets blocked by a Content Security Policy, your mockup breaks. They also track which pages request their images, raising privacy concerns for internal prototypes.

This tool gives you something more portable: a self-contained data URI you can drop into an <img src> or CSS url(), the raw SVG markup, a ready-to-paste <img> snippet with matching dimensions, or a CSS background rule. Because the image is embedded, there's no extra file to upload, no broken hotlink if a service goes down, and no third-party usage tracking. Copy, paste, done.

Presets for Social Media, Ads, Avatars and Thumbnails

Building a layout that needs many image slots? The preset sizes cover the formats you reach for most — social and OG images (1200×630), ad units (728×90, 300×250), square posts (1080×1080), stories (1080×1920), banners, product shots, book covers, and video thumbnails (1280×720). Sizing a placeholder to match the real slot keeps your layout stable and prevents the cumulative layout shift (CLS) that hurts Core Web Vitals scores.

Aspect ratio presets (1:1, 4:3, 16:9, 9:16, and more) with an optional aspect lock let you maintain proportions as you scale. Turn on the lock, change one dimension, and the other adjusts automatically — perfect for designing responsive image grids where every card must maintain the same ratio regardless of container width.

Private, Instant and Free — Works on All Devices

There's no account, no watermark, and no limit on how many images you create. Every placeholder is generated on your own device, so it's a fast, privacy-friendly tool for designers and developers working with confidential designs or internal mockups. Works on Windows, Mac, Linux, iPhone, iPad, and Android — open it in any modern browser and start generating immediately.

The tool even works offline once the page has loaded. Bookmark it and generate a perfectly sized placeholder image the moment a mockup needs one — no searching for a placeholder service URL, no worrying about rate limits, and no account to log into. Your designs stay yours.

Standard Image Dimensions Every Web Designer Should Know

Matching your placeholder to a real-world dimension removes guesswork when the final asset arrives. Hero banners are typically 1920×1080 px (full-HD, 16:9) or 1440×600 px (a shorter cinematic crop common in marketing sites). Open Graph share images — the preview card that unfurls when a URL is shared on Twitter/X, Facebook, and LinkedIn — must be at least 1200×630 px; anything smaller gets replaced by the platform's generic icon. Blog post featured images follow the same 16:9 shape at 1200×675 px, which scales cleanly from desktop cards to mobile full-width.

Thumbnails default to the classic 4:3 ratio at 400×300 px or the now-standard video ratio at 320×180 px (16:9). Avatar and profile images are almost always displayed as circles but stored square — 400×400 px is the safe minimum before platforms like Twitter/X or LinkedIn compress the detail away. Product images for e-commerce are square by convention, with 800×800 px giving enough resolution for zoom functionality without enormous file sizes. E-mail headers run narrow and shallow: 600 px wide (the maximum most e-mail clients render) and 200–300 px tall. For mobile-first designs, 390×844 px matches the iPhone 15 logical canvas and 393×873 px matches the iPhone 16, giving you a true full-screen placeholder for native-feeling web-app mockups.

Knowing these numbers means you can prototype at real scale from day one. A 1200×630 OG placeholder in your meta tag lets you verify the share-card layout in a browser preview tool before photography is complete. A 400×400 avatar in a comment thread shows exactly how much face a circle crop will reveal at its rendered 40 px diameter. Getting the sizes right at the placeholder stage is the cheapest way to catch layout problems before production assets exist.

Aspect Ratios, CSS aspect-ratio, and Cumulative Layout Shift

An aspect ratio is the proportional relationship between an image's width and height, expressed as width:height — for example 16:9 (widescreen video and most desktop heroes), 4:3 (classic television and many card thumbnails), 1:1 (square: Instagram posts, product tiles, avatars), or 2:3 (portrait: Pinterest pins, book covers, mobile-first stories). Ratios matter more than absolute pixel dimensions for layout, because a CSS grid of 16:9 cards stays visually consistent whether each card is 320 px or 800 px wide.

The CSS aspect-ratio property — introduced in 2021 and now universally supported across Chrome, Safari, Firefox, and Edge — lets a browser reserve the correct vertical space for an image before the file has downloaded. Writing img { aspect-ratio: 16 / 9; width: 100%; } causes the browser to paint a 16:9 box immediately, so the surrounding content is never pushed down when the image arrives. Without it, the browser sees zero height until the image loads, then suddenly shifts everything below — this is the Cumulative Layout Shift (CLS) problem, one of Google's three Core Web Vitals. A CLS score above 0.1 is penalised in search rankings, making aspect-ratio a SEO concern as much as a design one.

This is also why placeholder images with explicit width and height attributes matter: <img width="1200" height="630"> gives the browser the ratio it needs to reserve space before any CSS or JavaScript loads. Modern browsers calculate the intrinsic aspect ratio from those attributes and apply it immediately — a behaviour standardised in HTML5 and now the recommended practice in Google's web performance guidelines. When you copy an <img> tag from this tool, the matching width and height are already included, so the slot never shifts when real content loads in.

SVG Placeholders, Data URIs, and the Shimmer Skeleton Pattern

An SVG placeholder is nothing more than a <rect> element filled with a colour, wrapped in an <svg> tag with matching width and height. At its simplest, the entire file is under 200 bytes — far smaller than even a 1×1 GIF. Because SVG is an XML text format, it scales to any display resolution without blurring, making it the sharpest possible placeholder at any screen density including 3× Retina displays. SVG also supports CSS classes and custom properties, so the same placeholder can switch between a light-mode grey and a dark-mode slate with a single CSS rule and no extra download.

A data URI encodes the image directly inside the attribute value, removing the need for a separate HTTP request entirely. The pattern src="data:image/svg+xml,%3Csvg…%3E" (URL-encoded) or the base64 variant embed the file inline in your HTML or CSS. This is ideal for critical above-the-fold placeholders: the browser paints them during the initial HTML parse, before any external resource has been fetched, so there is zero flash-of-missing-image. The trade-off is that the encoded string adds bytes to the HTML document itself — typically 30–40 % overhead for base64 — so data URIs are best reserved for small placeholders rather than large photographs.

For perceived performance, many large platforms — Facebook, YouTube, LinkedIn — use a shimmer skeleton animation: a pale grey rectangle with a bright highlight that sweeps left-to-right on a loop, mimicking movement and signalling that content is loading. User research consistently shows that an animated placeholder feels faster than an equivalent blank space, even when the actual load time is identical. The effect is implemented with a CSS @keyframes animation moving a linear gradient across the element — pure CSS, zero JavaScript, no images. As a development placeholder you do not need the animation, but understanding it clarifies why flat grey boxes remain the design standard: they share the same neutral visual language as the shimmer skeleton, so developers and designers immediately understand them as "content not yet loaded" rather than missing or broken assets.

Responsive Images, LQIP, and the Largest Contentful Paint Connection

A single placeholder size is fine for prototyping, but shipping real images to production means deciding which pixel dimensions to actually serve. The srcset attribute lets you list multiple pre-resized versions of the same image (image-480w.jpg 480w, image-1200w.jpg 1200w), and the browser picks the most appropriate one based on the device's screen width and pixel density. Paired with the sizes attribute — which tells the browser how wide the image will be rendered at each viewport breakpoint — this combination can cut image payload by 50–70 % on mobile devices without any JavaScript. Your placeholder should match the largest srcset size so the layout never shifts when the biggest version loads.

The Low-Quality Image Placeholder (LQIP) pattern takes data URIs a step further: instead of a blank box, you embed a tiny, heavily blurred thumbnail (often as small as 10×10 px, base64-encoded) as the placeholder src. This gives users an immediate — if blurry — preview of the actual image content while the full resolution version loads in the background. JavaScript (or native loading="lazy") swaps the src once the full image is ready. The blurred preview occupies the exact same space as the final image, so there is zero layout shift, and the visual transition from blurred to sharp communicates progress far more clearly than a grey box. Tools like Next.js next/image and Gatsby's image plugin generate LQIP data automatically during the build step.

The hero or featured image at the top of a page is almost always the browser's Largest Contentful Paint (LCP) element — the metric Google uses to measure how quickly a page feels loaded. LCP must complete in under 2.5 seconds on a median mobile connection to score "Good" in Core Web Vitals. Using loading="eager" (the default for above-the-fold images), preloading the image with <link rel="preload" as="image">, and serving a next-generation format like WebP or AVIF via the <picture> element are the three highest-impact optimisations for LCP. Your placeholder strategy affects this score directly: a correctly sized placeholder with explicit dimensions tells the browser to reserve space immediately, and a preloaded real image fills that space before the user notices the swap — keeping LCP fast and CLS at zero.

Frequently asked questions

What is a placeholder image?

A placeholder image is a temporary stand-in graphic used while the final photo or artwork isn't ready. It's usually a plain colored rectangle at the exact pixel size of the slot it fills, often labelled with its dimensions — for example a gray 600×400 box that reads "600 × 400". Designers and developers drop them into mockups, wireframes, and prototypes so a layout looks complete before real images arrive. It's also called a dummy image, a picture placeholder, or a mock image.

How do I add a placeholder image in HTML?

Point an <img> tag at the image. The most self-contained way is a data URI, so there's no separate file to host: <img src="data:image/svg+xml,…" width="600" height="400" alt="Placeholder">. Click the '<img>' tab here and Copy, and the full tag — data URI plus matching width and height already filled in — lands on your clipboard, ready to paste. You can also save the downloaded file and reference it normally, e.g. <img src="/img/placeholder-600x400.png">.

Is this a placehold.co alternative?

Yes — and it's more privacy-friendly. Placehold.co, via.placeholder.com, and dummyimage.com all serve images from their servers, which adds network requests, can hit rate limits, and means those services tracking which pages hotlink their images. UtiloKit generates placeholder images entirely in your browser, so no request ever leaves your device. You get a downloadable file or a self-contained data URI that works offline and never breaks if an external service goes down.

What is a placeholder image used for?

Placeholder images are used for website and app mockups, wireframes, email templates, design hand-offs, and front-end development while the real assets are still being made. They reserve exact layout space (which prevents layout shift / CLS), help test responsive breakpoints, and fill demo content in CMS templates and component libraries. A single 1280×720 box can stand in for every video thumbnail in a grid during development, letting the whole team review layout without waiting for production assets.

What size should a placeholder image be?

Match the exact pixel size of the slot it fills, so the layout doesn't shift when the real image loads. Common targets: 1200×630 for a social/OG share image, 1080×1080 for an Instagram square, 1280×720 for a video thumbnail, 256×256 for an avatar, 1920×1080 for a full-width hero banner, and 728×90 for a leaderboard ad. Use the size and aspect-ratio presets here to set these in one click, or type any custom width and height up to 4000 px.

How do I create a placeholder image with custom text?

Type your label into the Text field — for example "Hero", "Avatar" or "Ad slot 300×250". Leave it blank and the image auto-labels itself with its dimensions (e.g. "600 × 400"). You can set the text color and font size too, so a slot in a mockup clearly says what it represents. This is especially useful in design reviews when clients need to understand what each image area represents without seeing final assets.

What format should a placeholder image be — SVG, PNG, JPG or WebP?

For a flat color box with text, SVG is usually best: it's only a few hundred bytes, stays razor-sharp at any size, and pastes neatly as a data URI — ideal for the web. Use PNG when a tool needs a raster file or you want transparency, JPG when something insists on a photo format, and WebP for the smallest raster file. This tool exports all four formats, and SVG is the default because it's the most practical for web development workflows.

How is this different from Lorem Picsum?

Lorem Picsum (picsum.photos) serves random real photographs, which is great when you want lifelike imagery but means every load is a different picture pulled from a third-party server. This tool makes deterministic solid-color boxes with your exact size, colors, and label — predictable, tiny, and generated offline in your browser so nothing is uploaded and the result never changes between loads. Use Picsum for realistic photo mockups; use this for clean, controlled layout placeholders.

How do I get a placeholder image URL?

Hosted services like placehold.co give you a URL such as placehold.co/600x400 because a server renders the image on each request. This tool runs entirely in your browser with no server, so instead of a hotlinked URL it gives you a self-contained data URI you can paste anywhere a URL goes (an <img> src, a CSS url()), plus a downloadable SVG, PNG, JPG or WebP file. No network request, no rate limits, and it keeps working offline.

How do I make a gray placeholder box?

Set the background to a light gray such as #e2e8f0 and the text to a mid gray like #475569 — that's the familiar neutral placeholder look. Pick the Gray palette preset to apply both colors at once, choose your size, and download. Gray reads as "intentionally empty", so the placeholder never competes visually with the surrounding design during review. This is the standard convention used by Figma, Sketch, and most design systems for placeholder slots.

Can I use this on mobile — iPhone or Android?

Yes, fully. The tool runs in any modern browser, including Safari on iPhone and Chrome on Android. Set your dimensions, pick colors, add text, and download or copy the data URI directly from your phone. It's particularly handy when reviewing a responsive layout on your device and needing to quickly fill an image slot for a screenshot or design handoff. No app install required — just open the page in your mobile browser.

How do I make a placeholder for a specific aspect ratio?

Pick an aspect-ratio preset (1:1, 4:3, 3:2, 16:9, 2:1 or 9:16) and the height updates to match your width automatically — enter 1280 wide at 16:9 and you get 1280×720. Turn on "Lock aspect ratio" to hold that proportion while you scale either dimension. This is handy for responsive image slots that must keep a fixed ratio across breakpoints, or for designing card grids where every image thumbnail needs to be the same proportion.

Are placeholder images free with no limits?

Yes — every image is free, with no sign-up, watermark, account, or usage limit. Unlike some online image tools that limit free users to a certain number of downloads per day or require email registration, this tool has zero restrictions. It's a privacy-friendly alternative to placehold.co, dummyimage.com, and via.placeholder.com: instead of hotlinking their servers you generate the image locally and own the file or data URI outright, with no dependency on third-party uptime.