Tutorials
How to make an animated GIF from your own drawings
Draw a short loop, export it as a GIF and keep the file small. Canvas sizes, frame rates, colour limits and fixes for the problems GIFs often cause.
By OnionSketch team3 min read
An animated GIF is a short stack of pictures that plays on its own and can loop. It works in many chats, documents and web pages without a video player, which makes it a handy format for a small hand-drawn animation.
The steps below use OnionSketch, our browser editor. The advice about size, colour and timing applies to any GIF tool.
Make a GIF from drawings in 8 steps
- Open a new animation. You can draw as a guest. If you are signed in, you can pick a preset such as the 480 × 480 GIF size when you create a project.
- Set the frame rate to 12 fps.
- Draw the first frame with large, clear shapes.
- Press
Nfor a new frame and draw the next position over the faint onion skin of the last one. - Keep going until the action gets back to where it began.
- Press
Spaceto play the loop and fix any frame that jumps. - Select Export & Download, or press
Ctrl+Shift+E(⌘+Shift+Eon a Mac). - Choose GIF and download the file.
Free exports go up to 720p and include a small OnionSketch mark in the corner.
Pick a size for where it will be seen
A GIF gets heavy fast, because it stores many pictures. Width and height matter more than almost anything else: halving both leaves a quarter of the pixels.
| Use | A sensible starting size |
|---|---|
| Chat reaction | 480 × 480 |
| Inside a blog or doc | Around 640 pixels wide |
| Full-screen showing | Use MP4 instead |
These are starting points. Check the upload limit of the place you're posting to, because each one sets its own.
Design for 256 colours
The GIF format stores at most 256 colours per frame. Flat line art and solid fills fit easily. Soft gradients, photos and glowing effects can break into visible bands or speckles.
- Fill with solid colours.
- Keep your palette small and reuse it on every frame.
- Avoid large soft shadows.
- If you need smooth colour, export an MP4.
GIF transparency is all or nothing for each pixel, so soft transparent edges can look jagged on a dark page. Drawing on a solid background avoids this.
Frame rate and timing
GIF files store the delay between frames in hundredths of a second. A rate like 12 fps works out to 8.33 hundredths, which the format can't store exactly, so playback in a GIF may differ very slightly from playback in your editor. At 10 fps the delay is a round 10 hundredths.
Some viewers also slow down GIFs with very short delays. Staying at 12 fps or below avoids surprises.
To pause on a pose, hold the drawing. In OnionSketch, press Shift+H once for each extra frame. A short hold at the end of a loop gives the viewer time to read the pose.
How to make the loop smooth
A loop is smooth when the jump from the last frame to the first looks like any other step.
- Don't end on a copy of the first drawing. Two identical frames in a row read as a stutter.
- Draw cycles in an even number of frames when the action has two matching halves, such as a swinging pendulum.
- Watch it loop at least five times. A hitch is easier to spot on the third pass than on the first.
An 8-frame waving hand is a good practice loop: four drawings swing one way and four swing back.
Keep the file small
Try these in order, and export again after each change:
- Lower the size.
- Remove frames you can do without.
- Keep the background still and plain.
- Reduce the number of colours in your drawing.
- Shorten the animation to the part that matters.
GIF, MP4 or PNG sequence?
| Format | Choose it when |
|---|---|
| GIF | You want a short silent loop that plays without a player |
| MP4 | You need sound, smooth colour or a longer clip |
| PNG sequence | You'll edit the frames in other software |
GIF has no sound. If your animation has a voice line or music, export MP4.
Turning a GIF back into frames
If you already have a GIF you drew somewhere else, drag it onto the OnionSketch canvas. Its frames arrive on a new layer, where you can trace over them or add drawings on a layer above.
Only upload artwork you made or have permission to use.
Next steps
Need an idea for a first loop? Try the bouncing ball, or a stick figure wave. If the movement feels stiff, the timing guide explains how spacing changes it.