Placeholder Images Without a Placeholder Service: Use Inline SVG
Why tiny SVG placeholders beat external placeholder services, the image sizes you need for social media and the web, and how to avoid layout shift.

Placeholder Images Without a Placeholder Service: Use Inline SVG
Every design and front-end project has a stage where images do not exist yet. Product photos are still being shot, the hero banner is waiting for approval, and the social share card has no artwork. Placeholders fill the gaps so you can build and test layouts. The free SVG Placeholder Image Generator makes them in any size, in your colours, without depending on anyone else's server.
The problem with placeholder websites
Placeholder services are convenient: put a size in a URL and an image appears. But each image is an extra request to a third-party server, which slows pages and fails when you work offline. Services shut down or change their URLs, leaving broken images in old prototypes. Every request also tells the service which page is loading it. For anything beyond a throwaway sketch, a local file is better.
Why SVG
SVG is a vector format written as text. A placeholder with a coloured rectangle and a label takes a few hundred bytes, compared with several kilobytes for a PNG or JPEG of the same size. It stays perfectly sharp on high-resolution screens and when zoomed. And because it is text, it can be embedded directly into HTML or CSS as a data URI, with no separate file and no network request at all.
Sizes worth knowing
You can type any size, and several at once. Some common ones:
- 1200 by 630 for link previews on social networks and messaging apps (Open Graph).
- 1080 by 1080 for square posts, 1080 by 1350 for portrait posts.
- 1080 by 1920 for stories and vertical video covers.
- 1500 by 500 for an X header, 1584 by 396 for a LinkedIn banner.
- 1280 by 720 or 1920 by 1080 for video thumbnails and 16:9 hero images.
The generator shows the simplified aspect ratio of each size, which helps when you specify images in CSS with aspect-ratio.
Preventing layout shift
When an image loads without known dimensions, the page jumps as the image appears. This annoys readers and hurts the Cumulative Layout Shift measure in Google's Core Web Vitals. Always give images width and height attributes, or an aspect ratio in CSS, so the browser reserves the space. The img tag the generator produces includes both, so your layout behaves the same with the placeholder and with the final image.
Labels and styling
By default each placeholder is labelled with its size, so designers and clients can see at a glance which slot needs which image. You can write your own label, such as "Hero image" or "Product photo", and add line breaks. Choose background and text colours to match your brand or wireframe style, round the corners, and add diagonal lines for the classic "image goes here" look.
Accessibility
Placeholders are decorative, so the generated tag has an empty alt attribute, which tells screen readers to skip it. When the real image arrives, replace the alt text with a description of what the image shows.
In design hand-offs
Placeholders labelled with their exact sizes double as a specification. Photographers and illustrators can see which crops are needed, and developers can check at a glance that each slot in a responsive layout receives an image of the right proportions. When the final images arrive, compare their dimensions with the placeholders before swapping them in.
Step by step
- Enter one or more sizes, such as 1200x630.
- Pick background and text colours.
- Type a label or keep the size.
- Choose a font, corner radius and diagonal lines.
- Download the SVG or PNG, or copy the data URI, img tag or CSS rule.
Privacy
Images are created in your browser. Nothing is uploaded and no third-party service is involved.



