Start a project

Tool 18 of 29 · 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

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 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