Free visual CSS tool

CSS Avatar Stack Generator

Build an overlapping row of avatars for teams, reviewers or community members. Adjust count, overlap, size and style, then copy clean HTML and CSS.

Ready-to-use HTML + CSS

Show your people at a glance

Avatar stacks are the fastest way to signal "these people are here" on a dashboard, doc or product page.

Correct layering

Each avatar overlaps the previous one with proper z-index stacking, just like real product UIs.

Initials or emoji

Auto-generated colored initials, or swap to any emoji set you like.

Editable +N bubble

Show how many additional members aren't pictured, with a number you control.

How to build an avatar stack

  1. Set count and overlapChoose how many avatars to show and how tightly they overlap.
  2. Pick a fill styleUse auto-colored initials or emoji, editing the comma-separated list.
  3. Copy the codeGrab the HTML and CSS and drop it into your page.

About avatar stacks

An avatar stack is a compact way to represent a group of people without listing every name. You'll see it on collaborative docs showing active editors, on team pages showing contributors, and on social products showing "who's here." The visual trick is simple but easy to get wrong by hand: each avatar needs a negative margin to overlap the one before it, a border matching the page background so the overlap reads cleanly, and a rising z-index so later avatars sit visually on top rather than underneath. This generator handles all three automatically as you adjust the sliders, and produces a small, semantic block of HTML with inline CSS custom properties so the stack is easy to theme and drop into any layout.

Overlap and z-index

Overlap is a negative left margin; stacking order is controlled with z-index so each avatar after the first appears above the one before it.

Border as separator

A solid border in the page's background color is what makes overlapping circles read as distinct avatars instead of a blurry blob.

Initials as fallback

Colored initial avatars are a reliable fallback when you don't have (or don't want to load) real profile photos.

The +N convention

A trailing "+N" bubble is a familiar UI pattern for signaling more members exist beyond what's visually shown.

CSS avatar stack generator FAQ

How does the overlap work?

Each avatar after the first uses a negative left margin equal to the overlap value, pulling it under the previous avatar while a rising z-index keeps later avatars on top.

Can I use emoji instead of initials?

Yes. Switch the fill style to emoji and edit the comma-separated list to use any emoji or initials you like.

What is the +N bubble for?

It represents additional members not shown in the stack, such as +12 more team members. You can toggle it on or off and edit the number.

Is the generated code dependency-free?

Yes. The output is plain HTML and CSS with no JavaScript or external libraries required, so it drops into any project.

Try other design tools

Keep building small UI components with these free tools.