Start a project

Tool 86 of 244 · Images

Placeholder Image & Avatar Generator

Make placeholder images at any size and initials avatars for mock-ups and prototypes, as files or inline code, without relying on an outside image service.

Placeholder Image & Avatar Generator at a glanceIllustration: 1, Width, height, label; 2, processed in your browser; 3, Placeholders + avatars.Placeholder Image & Avatar Generator16px = 1rem1Width, height, label3Placeholders + avatars2In yourbrowser
1 Width, height, label 2 processed on your device 3 Placeholders + avatars

Placeholder Image & Avatar Generator

Settings

Hex, rgb(), hsl() or a colour name
Hex, rgb(), hsl() or a colour name
Blank shows the size, like 800 × 600

Preview

Placeholder preview

Code

<img> tag with the image inline
SVG
Data URI

01

What it does

Placeholder images at any size and initials avatars, as SVG, PNG or a data URI you can paste anywhere.

  • Any size, with common presets
  • Your colours and label, or the size
  • Initials avatars with a colour from the name
  • Circle, rounded or square

02

Private by design

Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

03

What you get

SVG, PNG and a data URI, with a Copy and a Download button on every result.

  • SVG
  • PNG
  • Prototyping

Why it matters

Placeholder services are handy until one goes offline the week before a client demo, or a privacy review asks why every page calls a third-party server. Generating placeholders yourself means they always load and nothing about your visitors leaves your site.

An SVG placeholder is usually a few hundred bytes, scales to any size and can sit inline in your HTML. The initials avatars give each name the same colour every time, which makes lists of people easier to scan.

How it works

  1. InputSize, colours, label or initials
  2. In your browserSVG drawn in the page
  3. OutputSVG, PNG or data-URI placeholders and avatars

Where it fits in a designer's workflow

  1. Plan
  2. Design
  3. Build
  4. Test
  5. Launch
Mock-ups and builds before the real photos arrive.

By the numbers

Bytes for the same 1200 × 630 placeholder in each formatSVG: 268 bytes; SVG gzipped: 202 bytes; PNG: 3.8 KB; WebP: 1.7 KB; JPEG: 12.7 KBSVG268 bytesSVG gzipped202 bytesPNG3.8 KBWebP1.7 KBJPEG12.7 KB
Example, computed: a flat grey placeholder with its size written on it. As SVG it is a few hundred bytes of text that scales to any size; the bitmaps have to store every pixel. JPEG struggles with flat colour and sharp text.
Show the numbers as a table
FormatBytes
SVG268
SVG gzipped202
PNG3,921
WebP1,726
JPEG12,988

How to use it

  1. Choose Image or Avatar.
  2. Set the size, colours and label, or type a name for the avatar.
  3. Download a PNG or SVG, or copy it.
  4. Or copy the data URI or img tag to paste straight into your HTML.

FAQ

Why use an SVG placeholder?

It's tiny, sharp at any size, and can be inlined so there's no extra request.

How is the avatar colour chosen?

From a hash of the name, which picks a hue. Every hue uses the same mid-tone lightness, so white letters stay readable, and the same name always gets the same colour.

Can I use these in production?

Yes. The avatar is a good fallback when a user hasn't uploaded a photo. Give the img an alt text with the person's name.

Does anything get uploaded?

No. Everything is drawn in your browser.

Work with me

Want a site that gets these right?

I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

All developer tools · Back to leej.uk