WhatsApp Sticker Maker
Operator: Abdulla Al Fahad. How tools are built and checked
A sticker that reads well in a chat is one subject, cleanly cut out, sitting in the middle of a square with an outline that separates it from any chat background. By hand that means removing the background, growing a border, resizing to exactly 512 pixels and then coaxing the exporter under the file-size limit.
WhatsApp's apps can already turn a photo into a sticker, which is the quickest route for a one-off. This page is for when you want to choose the outline width and color, the spacing and a shadow yourself, or need every sticker in a set to share the same border and the same file-size ceiling.
Key features
- Cut-out by the same matting model as the AI Background Remover, with edge position and feather controls
- Outline from 0 to 40 pixels in any color
- Optional soft drop shadow
- Subject trimmed to its bounds and centered on a 512 x 512 canvas, with 8 to 60 px of spacing
- WebP quality searched so the file lands at 100 KB or less
- 96 x 96 PNG tray icon, checked against the 50 KB limit before it is saved
Sticker size limits, outlines and tray icons
The pack format that sticker-pack apps import is 512 x 512 pixel WebP files, up to 100 KB for a static sticker, with a pack holding 3 to 30 stickers and a 96 x 96 PNG tray icon of up to 50 KB. This page makes the static sticker and the tray icon, one photo at a time. Animated stickers, which are animated WebP files with a higher size limit, are not supported.
The photo is read at up to 1024 pixels on its longest side, which is plenty for a 512 px sticker. The first run downloads the cut-out model, the same one described in the Portrait Background Blur article. Outline width is measured on the finished sticker, from 0 to 40 pixels, and the spacing around the subject is 8 to 60 pixels. Saving first checks that the browser really encodes WebP, because some write a PNG under a .webp name; if it cannot, the button stays disabled and the page says which browsers work.
How it works
After the matte is found, the page measures the box around the subject and scales it so the box, the outline and the spacing fill the 512 pixel square: the room for the subject is 512 minus twice the spacing minus twice the outline, divided by the longer side of the box. The outline width is fixed in output pixels, so it is converted to source pixels with that scale before it is grown. The border comes from a distance transform, which fills every pixel within the outline radius with the outline color and softens the last pixel. The subject is drawn on top, and the shadow, when on, is cast by the combined shape with a 35 percent black, an 8 px blur and a 3 px offset downwards.
To meet the size limit the encoder tries quality 0.05 first and gives up with a message if even that is over 100 KB. Then it tries 0.95 and uses it if it fits. Otherwise seven bisection steps narrow the range, so at most nine trial encodes run before the saving one, and the chosen quality is within 0.007 of the highest that fits. The tray icon is the finished sticker scaled to 96 x 96 and written as a PNG.
Typical uses
- A set of 12 pet stickers from 12 phone photos. Keep a 14 px white outline and 12 px spacing for all twelve so every sticker has the same border, then add the files to a sticker-pack app with the tray icon from your favorite one.
- A bakery turning a 3000 x 4000 product photo into a sticker. The photo is worked on at 768 x 1024 (1024 / 4000 = 0.256), which is still twice the 512 px the sticker needs, so the cut-out edge stays crisp after scaling.
Building one
- Drop a photo of one clear subject and wait for the cut-out. The first run also downloads the model.
- Set the outline width and color and the spacing. Leave the shadow on unless the file is too large.
- If the border cuts into the subject or leaves a halo, adjust Edge position and Feather.
- Download the WebP sticker.
- Download the tray icon too if you are building a pack. Repeat from step 1 for each sticker, using the same settings so the set matches.
Example
A subject box of 900 x 1100 px, outline 14 px, spacing 12 px
room for the subject 512 - 2 x 12 - 2 x 14 = 460 px
scale 460 / 1100 = 0.418
outline in the photo 14 / 0.418 = 33.5 pxWhat is drawn and saved
finished box 404 x 488 px, centered on 512 x 512
quality search at most 9 trial encodes, then the saving one
tray icon 96 x 96 (the sticker at 18.75 percent)Things to check before you rely on it
Only static stickers are made here. An animated sticker needs an animated WebP, which this page does not write.
If the photo holds several people or objects, the matte may keep all of them or only the strongest. Crop to the one you want before dropping it in.
Fur and foliage compress poorly. The quality search will settle lower for them than for a flat cartoon, which softens fine detail.
- A gap narrower than twice the outline is filled by it. At 14 px, a space under 28 px between a cat's ear and its head vanishes into the border, which also hides small cut-out errors inside such gaps.
- If a sticker is still over 100 KB at the lowest quality, remove the shadow first, then switch to a simpler photo.
Common errors and how to fix them
- Even at the lowest quality this sticker is over 100 KB
- Reduce the outline, turn off the shadow, or use a photo with fewer fine details.
- This browser cannot encode WebP
- Open the page in a current Chrome, Edge or Firefox. The sticker has to be WebP, so saving stays disabled in browsers that cannot write it.
Frequently asked questions
Can I send the sticker straight from this page?
No, the page only makes files: the WebP and the tray icon. To use them, add the WebP through a sticker-pack app that builds WhatsApp packs, which asks for 3 to 30 stickers and the tray icon. For a single sticker from one photo, WhatsApp's own sticker creator is the shorter path.
Why do the saved files differ in size?
The quality is searched separately for every sticker. A flat subject can reach the 0.95 ceiling, while a furry or detailed one lands lower to stay under 100 KB.
Why does the tray icon look softer than the sticker?
It is the finished sticker scaled down to 96 x 96, which is 18.75 percent of 512, so fine outline detail averages away.