⚠️ Design system CSS not found. Check the path in cms/docs.config.js → designSystemPath, then re-run npm run docgen.

Image Placeholder

Generate SVG placeholder images by URL

Open Tool
Tools / Image Placeholder
Download .md file
Open .md in new tab

The Image Placeholder tool generates SVG placeholder images on the fly via URL parameters. Change the URL to change the image — no image libraries required.


URL Schema

/image/[width]x[height]
/image/[width]
/image/[width]x[height]/[bgColor]
/image/[width]x[height]/[bgColor]/[fgColor]
/image/[width]x[height]/[bgColor]/[fgColor]?text=Hello+World

Size

  • 600x400 — width 600, height 400
  • 400 — 400 × 400 square (height defaults to width)
  • Minimum: 10 × 10 px
  • Maximum: 4000 × 4000 px (values outside range are clamped silently)

Colour

Colours are specified without # in the URL path.

Format Example Notes
6-digit hex ff0000 Standard hex colour
3-digit hex f00 Expanded to ff0000 internally
CSS name orange, white Full W3C CSS Color 3 list
Keyword transparent Renders a checkerboard pattern
  • Default background: cccccc
  • Default text: 333333
  • Invalid values fall back to defaults silently

Text

  • ?text=Hello+World — spaces via +
  • ?text=Hello\nWorld — literal \n in URL creates a line break
  • Default label: the dimensions, e.g. 600 × 400
  • All text is HTML-escaped before embedding in the SVG

Examples

<!-- Basic -->
<img src="https://bydefault.design/image/800x400" alt="">

<!-- Square -->
<img src="https://bydefault.design/image/400" alt="">

<!-- CSS colour names -->
<img src="https://bydefault.design/image/600x400/orange/white" alt="">

<!-- Transparent background -->
<img src="https://bydefault.design/image/600x400/transparent/333333" alt="">

<!-- Multi-line label -->
<img src="https://bydefault.design/image/600x400?text=Hero\nSection" alt="">
On this page
  • URL Schema
  • Size
  • Colour
  • Text
  • Examples
Previous

Display Ad Preview

Next

World Clock

Was this page helpful?

We use this feedback to improve our documentation.

Thanks for your feedback

Send feedback

© 2026 By Default