SVG Placeholder Generator
Generate SVG placeholder images for mockups, prototypes and CMS templates. Customise size, colour and text. Copy as raw SVG, data URI or download.
SVG Placeholder Generator Tool
How to use the SVG placeholder generator
Pick dimensions
Type a width and height, or click one of the common-size pills (1200×630 for social, 512² for app icons, 1920×1080 for hero images).
Pick colours
Use the colour picker or paste a hex code. Background fills the rectangle; text colour is used for the dimension label.
(Optional) Customise the text
By default the placeholder shows its own dimensions. Override with any short label — a brand name, a section title, or a placeholder caption for later replacement.
Copy or download
Three output formats: raw SVG (paste into a Vue/React component), data URI (paste into CSS background-image), or full <img> tag. Or download a .svg file.
SVG placeholders — when, why, and how
Designers, front-end engineers and CMS template authors all have the same recurring need: a rectangle of known dimensions with a hint of what content goes there. Historically this was solved with raster placeholder services — via.placeholder.com, the Lorem Picsum hosts, or by exporting a quick PNG from Figma. Each of those approaches has costs: a runtime HTTP request, a tracking pixel, an external dependency that the page now depends on. SVG placeholders side-step all of that because they are tiny self-contained vector images you can embed inline.
Why SVG and not raster
A typical 1200×630 PNG placeholder is around 8–15KB. The same content as an SVG is around 250–400 bytes. Smaller is faster — and SVG scales infinitely, so the placeholder looks correct on every screen density without serving multiple resolutions. SVG also embeds cleanly into HTML, CSS (via data URIs) and React/Vue/Svelte components without going through an image-pipeline step. For local development and CMS template work, the SVG placeholder is almost always the right choice.
The three output formats
The tool above produces three representations of the same image. The raw SVG form is the actual XML markup; paste it directly into a JSX/Vue component or into a template file. The data URI form encodes the SVG as a data:image/svg+xml;base64,... URL that fits inside any CSS background-image: url(...) rule or an <img src="..."> attribute. The img tag form gives you a complete HTML element with the data URI already wired in — copy and paste into a page mockup. All three forms are functionally equivalent; the format you want depends on where the placeholder is going.
A note on real production images
SVG placeholders are wonderful for prototypes and CMS templates. They are not a substitute for real production imagery. Marketing pages need actual photographs, branded illustrations, or AI-generated art with proper rights. The placeholder workflow is: ship the mockup with SVG placeholders, validate the layout with stakeholders, then swap each placeholder for the real image before launch. The Singapore and Malaysian SME design teams we've talked to typically use SVG placeholders for around the first two weeks of a project, then transition to a mix of stock photography (Pexels, Unsplash) and commissioned illustration for live pages.
Accessibility considerations
SVG placeholders are technically images and need alt attributes when used as <img> tags. The placeholder text inside the image is not read by screen readers — it's rendered text in vector form, not actual HTML text — so the alt attribute matters even when the image self-labels visually. For decorative placeholders (filler in a layout demo), alt="" is the correct value; for placeholders standing in for a real image whose content is meaningful, give them a real description that the eventual final image's alt would carry.
Cache and CSP gotchas
Two operational notes. First, an SVG embedded via a data URI is bytes-in-the-DOM — it does not hit the network, so it cannot be cached separately from the HTML. For repeated use across a site, save the SVG as a real .svg file and reference it by URL. Second, if your Content Security Policy has a strict img-src directive, data URIs are blocked by default — add data: explicitly to allow them.
10 things to know about SVG placeholders
An SVG placeholder is typically 200–400 bytes. The equivalent PNG is 8–15KB. That's an order-of-magnitude difference on every page that uses it.
Data URIs work in CSS background-image rules. You can build entire page layouts with placeholder backgrounds without a single HTTP request.
SVG is vector — it scales infinitely without blurring. The same 200-byte file looks crisp on a phone, a 4K monitor, and a billboard.
Modern browsers cache data URIs separately from HTTP-fetched images. Reusing a placeholder across 50 components costs you 0 extra bytes on parse.
The most common social-share image size is 1200×630. The OpenGraph spec recommends it; Twitter, LinkedIn, Facebook, WhatsApp all use it.
SVG embeds JavaScript. Treat user-supplied SVG as untrusted input — a malicious SVG can run scripts. Placeholders you generate yourself are safe.
The 16:9 aspect ratio (1920×1080) became standard because HDTV adopted it in the 1990s. Most hero images on tech websites use it.
App icons on iOS and Android are square. iOS uses 1024×1024 source files; Android uses adaptive icons with separate foreground and background layers.
Old versions of Internet Explorer didn't render SVG. Modern Edge does, as does every browser used by more than 0.05% of the global market.
"placeholder.com" was one of the earliest internet placeholder services, launching in 2009. Its replacement, "via.placeholder.com," handled billions of requests before shutting down in 2024.
Frequently asked questions
background-image.alt attribute when using a placeholder as an <img> tag.#FF000080 for 50% red) are accepted. The browser colour picker only outputs 6-digit hex, but you can type an 8-digit value into the text field manually.Related News
You may be interested in these recent stories from our newsroom.
-
NEXTDC Opens Peninsular Malaysia's First Tier IV Data Centre with RM2.8 Billion KL1 Launch in Petaling Jaya
NEXTDC officially opened KL1 in Petaling Jaya on 14 May 2026 — an AUD$1 billion facility that holds Peninsular Malaysia's first Uptime Insti...
-
Indonesia's INA Locks In 30% Annual Allocation for AI and Data Centre Infrastructure
Indonesia's sovereign wealth fund INA has formalised a 30% annual cap on digital sector deployment, anchored by a joint venture with Singapo...
-
Microsoft Build 2026: Project Polaris Cuts Copilot's OpenAI Dependency, Copilot Workspace Ships to GA
Microsoft confirmed at Build 2026 in San Francisco that GitHub Copilot will run on Project Polaris — its own mixture-of-experts coding model...
75 more free tools
Calculators, converters, security tools — no signup.