Discord Sticker Compressor: How Do I Get a Sticker Under 512 KB at 320x320?
Discord Sticker Compressor: How Do I Get a Sticker Under 512 KB at 320x320? Drop in a PNG, APNG, GIF, JPG or WebP and this tool scales it to a 320 by 320 square, checks the file against Discord's 512 KB limit, and gives you back a PNG or an APNG that Discord will accept. Every pixel is processed in your browser, so your art never gets uploaded.
What the compressor does
Discord asks two things of a sticker file. The image has to be 320 by 320 pixels, and the file has to be 512 KB or smaller. Both are easy to get wrong. Upload a 1200 by 900 drawing and Discord scales it down for you, which softens the edges. Upload art that lands at 900 KB and the upload fails with a 400 error that never says how much to cut.
This tool handles both halves. Every file comes out at exactly 320 by 320 pixels, and the result is measured against the 512 KB limit and shrunk until it fits. You pick how the image fills the square: contain scales the whole picture down and pads the leftover space with transparency, while cover scales up until the square is full and crops the overflow.
You also pick the output format. A still file comes out as a PNG. An animation comes out as an APNG, the animated PNG format Discord accepts. A GIF is decoded frame by frame and re-encoded as an APNG, and an APNG is decoded and re-encoded at the new size.
How to use it
Drag a file onto the drop zone or press Choose a file and pick one from your device. The tool takes PNG, APNG, GIF, JPG and WebP. There is no upload step and no account, so it works on artwork that is not public.
Choose the output format first. APNG keeps the animation and suits a moving sticker. PNG keeps the first frame only. The fit mode comes next. Changing either setting re-runs the work on the file you already loaded, so you can compare both without picking the file again.
One switch matters for animations. Discord caps animated stickers at five seconds, so a longer clip has to be cut. With the trim switch on, the tool keeps the first five seconds and shortens the frame that crosses the line. With the switch off, you get the whole animation and a warning that Discord will turn it down.
Type the sticker name in the box. Discord wants between 2 and 30 characters, and the name also names your download, so a sticker called wave saves as wave-sticker.png. The preview shows the real output file rather than a mockup. Under it you get the file size, the frame count, the length of the animation, and a bar showing where the size sits against the limit.
Discord's sticker limits right now
The official reference is the sticker resource page at https://discord.com/developers/docs/resources/sticker. It lists the accepted file types as PNG, APNG, GIF and Lottie JSON, and puts the file size limit at 512 KB. Anything heavier fails the upload.
The same page gives the sticker dimensions as 320 by 320 pixels and states that animated stickers may run for five seconds at most. It also spells out the limits for the name, the description and the tags, which are covered further down.
Lottie needs a verified or partnered server. Regular servers cannot upload a Lottie file, and no amount of compression changes that. This tool does not make Lottie files. It makes PNG and APNG, which work on every server.
Sticker rules are not the same as emoji rules. Emoji files are 128 by 128 and capped at 256 KB, and the emoji resizer at https://tolz.me/discord/emoji-resizer handles that side. The sticker compressor deals with the bigger 320 by 320 canvas and the 512 KB ceiling.
Slot count is a server side limit, not a file limit. Every server starts with five sticker slots, and Boost levels add more.
How an animation is made to fit
Decoding an animation is more work than loading a still image. A GIF often redraws only the part of the canvas that changed, then tells the player what to do with that area afterwards. The compressor composites every frame on a canvas first, applying those disposal rules as it goes, so a frame that builds on the previous one still looks right.
APNG uses different rules. The dispose operation says whether a frame keeps the pixels underneath it or clears them back to transparent, and the blend operation says whether the new pixels go on top or replace what is there. The tool applies both before scaling, which is why a transparent background stays transparent instead of turning black.
Each finished frame is scaled to 320 by 320, and the frames are re-encoded with their original delays. The preview plays the re-encoded file, so what you see there is what Discord will play.
If the file is still too heavy, the tool works down a fixed ladder. It cuts the colour count first, from full colour down to 256, 128, 64 and then 32 colours. If that is not enough, it keeps every other frame and stretches the delays so the animation still takes the same time to play. It stops at the first combination that lands under the limit and reports what it gave up.
Edge cases to know about
Small sources get blurry when they are scaled up. A 64 by 64 icon stretched to 320 by 320 has no detail to work with, so the browser smooths it into a soft shape. Start from art that is at least 320 by 320 and keep the shapes bold with clean edges.
JPG files carry no transparency. In contain mode the padding around a JPG is transparent in the exported PNG, because the source has no colour to fill it with. A PNG or WebP source keeps whatever transparency it already had.
Long animations lose frames before they lose colour. A five second clip with 150 frames gets thinned until it fits, which means a choppier but complete loop. Cutting the source shorter gives a better result than letting the tool thin it.
Reducing the colour count flattens soft anti-aliased edges. Art with hard edges and a small colour range survives the palette step, while a smooth gradient turns into bands.
What the upload form still needs from you
Discord checks the text on the sticker as closely as it checks the file. The name has to be 2 to 30 characters. The description is either left empty or filled with 2 to 100 characters. The tags can carry up to 200 characters, and Discord uses them to help people find the sticker in the picker.
The compressor handles the image and the file size. Write the name in the tool so your download matches what you type on the form, then paste the description and tags straight into Discord.
Where to go next
Once the file is ready, open Server Settings, go to Stickers and upload it. Servers that publish a lot of stickers pair this with the announcement generator to tell members about the new set, and with the dividers maker to build the post that lists them.
If the art is square already and you only need the smaller emoji size, the emoji maker at https://tolz.me/discord/emoji-maker crops and exports a PNG at 128 by 128. More Discord tools are listed at https://tolz.me/discord.
Explore more discord tools on Tolz.me.