Skip to content

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

  1. 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.
  2. Set the frame rate to 12 fps.
  3. Draw the first frame with large, clear shapes.
  4. Press N for a new frame and draw the next position over the faint onion skin of the last one.
  5. Keep going until the action gets back to where it began.
  6. Press Space to play the loop and fix any frame that jumps.
  7. Select Export & Download, or press Ctrl+Shift+E (⌘+Shift+E on a Mac).
  8. 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.

UseA sensible starting size
Chat reaction480 × 480
Inside a blog or docAround 640 pixels wide
Full-screen showingUse 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:

  1. Lower the size.
  2. Remove frames you can do without.
  3. Keep the background still and plain.
  4. Reduce the number of colours in your drawing.
  5. Shorten the animation to the part that matters.

GIF, MP4 or PNG sequence?

FormatChoose it when
GIFYou want a short silent loop that plays without a player
MP4You need sound, smooth colour or a longer clip
PNG sequenceYou'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.