Skip to content
UniKit

Avatar frame maker

Add a festive frame to an avatar — ring, box or star badge — with adjustable colour, thickness and padding; PNG export stays local.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Images are processed locally in your browser with Canvas and never uploaded.

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result

No result yet

8px
12px
256px

Result

These are the real numbers from this run — copy them straight out.

Pick an image and the result shows up here.

What this tool does

  • Seasonal avatar: put a festive red ring on the same picture in seconds.
  • Team avatars: give every member the same frame and colour so they read as one group.
  • Badge variant: a star badge suits limited-event avatars and is lighter than a full outline.

Example

Input

A 16×16 avatar plus ring style, thickness 8, padding 12, output 256

Output

A 256 × 256 PNG: the avatar is first scaled to 232×232 and centred on a transparent canvas, then a red ring of thickness 8 is drawn on the outer radius

The frame sits on a transparent canvas and never covers the avatar content; the ring uses the outer radius, the box hugs the edges and the star is fixed in the top-right corner.

Frequently asked questions

Will the frame cover my avatar?

With the default settings it will not: the avatar is scaled to 232×232 and centred on a 256×256 transparent canvas, and the ring is drawn on radii 119.5 to 127.5, i.e. just outside the avatar. If you set the outer padding to 0 the avatar fills the whole canvas and the ring or box will sit on its outermost pixels. The area between the frame and the avatar stays transparent, so the exported PNG keeps a transparent background.

Where exactly are the ring, box and star badge drawn?

The ring uses the canvas circumcircle as its outer radius and subtracts the thickness (2–32 px) inwards; the box strokes the same thickness along all four canvas edges; the star badge is fixed in the top-right corner with a radius of one eighth of the output size (minimum 6 px) and always has five points. All three are drawn on top of the avatar inside the transparent canvas, in the colour from "Frame colour", red #e23b3b by default.

How large can the output size and the outer padding be?

The output size is 64–1024 px in steps of 32, the outer padding 0–128 px and the thickness 2–32 px; values outside the slider range are clamped instead of raising an error. Keep the padding below half the output size: as soon as padding × 2 exceeds "output size − 16" the avatar is squeezed to a minimum of 16×16 and the internal canvas is no longer the size you set.

Keywords:avatar frameavatar borderfestive avatar

Related tools