How to Do Pixel Art in Illustrator
StyleFrame Team7 min read
To do pixel art in Illustrator, either build it on a pixel-snapped grid with square shapes or convert a raster image with Object > Create Object Mosaic, then clean the result and export with anti-aliasing turned off. The grid method gives you full control over every pixel. The mosaic method is faster for turning existing artwork into blocky, retro-looking shapes. Both keep the art as editable vectors until you choose a final raster size for After Effects or another tool.
Why use Illustrator for pixel art at all?
Dedicated raster tools like Aseprite or Photoshop are more natural for painting sprites pixel by pixel. Illustrator earns its place when the pixel art needs to behave like a design asset:
- Resolution independence. The blocks stay crisp at any size, which helps when the same asset ends up in a lower third, a 4K title card, and a print deliverable.
- Global swatches. Change one palette color and every matching block updates.
- Reusable structure. Symbols, artboards, and layers make it easy to build a consistent icon set or sprite sheet for animation.
The trade-off is that Illustrator won't enforce a pixel grid on its own. You have to set one up.
Method 1: Draw on a pixel grid
This is the most controlled approach and the best for original sprites, icons, and UI elements.
Set up the document
- Create a new document with a small artboard, such as 64 × 64 or 128 × 128 px, in RGB color mode. Small artboards keep the pixel count manageable.
- Open Preferences > Guides & Grid and set the gridline spacing to a value that matches your pixel size. For true 1:1 pixels, use 1 px with a subdivision of 1. For chunkier "pixels", use something like 8 px.
- Turn on View > Show Grid and View > Snap to Grid.
- Use View > Pixel Preview and zoom to 600% or higher. This shows how the art will look once rasterized.
If you work at 1 px grid spacing, also turn on Snap to Pixel in the Properties panel. Adobe's pixel-perfect workflow keeps straight-edged paths aligned to the pixel grid as you draw, move, and scale them.
Build with squares
- Draw a single square with the Rectangle tool, matching your grid unit exactly.
- Hold Option/Alt and drag to duplicate it. With snapping on, each copy lands on the grid.
- Build your design in color regions rather than individual pixels. Draw a long rectangle where a row of one color repeats, instead of placing ten squares.
- Keep a limited palette. Pixel art reads best with a small set of swatches, so save each color as a global swatch.
Speed things up
Drawing every block by hand gets slow. Some ways to cut the work:
- Create a mirror copy with the Reflect tool for symmetrical sprites.
- Use the Pencil or Pen tool with snapping on for straight runs, but check the result in Pixel Preview. Curves and diagonals won't fall on the grid, so stick to horizontal and vertical edges.
- Use Live Paint on a grid of squares to fill cells quickly with the Live Paint Bucket.
Method 2: Convert existing artwork with Object Mosaic
If you already have an illustration, logo, or photo and want a quick pixelated version, Illustrator's mosaic command can generate the grid for you. It works on bitmap images, so rasterize vector art first.
- Rasterize the source. Select the artwork and use Object > Rasterize, or export a PNG and place it. Keep the resolution high and the background transparent if you want clean edges. Keep a copy of the original vector.
- Run the mosaic. With the raster selected, choose Object > Create Object Mosaic. Set the number of tiles horizontally and vertically. Enable Use Ratio so the tiles come out square. Fewer tiles produce a chunkier, more abstract look.
- Delete the leftover raster. Illustrator keeps the original image beneath the generated tiles. Select it with the Direct Selection tool and delete it.
- Remove background tiles. Click one background tile, choose Select > Same > Fill Color, and press Delete.
- Clean up. The mosaic averages colors, so you'll get many near-duplicate shades. Select inconsistent tiles and recolor them with the Eyedropper, or remap them to your swatches. Reducing the number of distinct colors makes the result look much more intentional.
- Unite shapes. Select tiles of the same color and use Pathfinder > Unite. This reduces object count and helps prevent hairline seams between adjacent squares when you export.
Treat the mosaic output as a first pass. The automatic result usually needs hand adjustments around eyes, outlines, and any detail smaller than a tile.
Fixing hairline gaps and blurry edges
Two problems show up often when pixel art leaves Illustrator.
Hairline seams between blocks. These come from anti-aliasing at the edge of adjacent shapes. To reduce them:
- Unite same-color neighbors with Pathfinder.
- Place a same-color rectangle behind a group of tiles as a backing layer so seams reveal the right color.
- Make sure every shape sits exactly on the grid. Run a check in Pixel Preview at high zoom.
Soft, blurry edges. If shape edges land on fractional pixel positions, they will be anti-aliased on export. Use Snap to Pixel, or right-click and choose Make Pixel Perfect on straight-edged art. This sharpens straight edges but doesn't improve curves or diagonals, which is one more reason to stay orthogonal.
Exporting pixel art for motion work
How you export depends on where the art is going.
As a raster for After Effects
- Choose File > Export > Export As (or Export for Screens) and pick PNG.
- Export at 100% for a true 1:1 pixel version, or at a whole-number multiple (200%, 400%, 800%) if you want it larger. Whole-number scales keep every block the same size.
- In the PNG options, set Anti-aliasing to None where available, so edges don't get softened.
- Keep the background transparent.
In After Effects, a 1:1 export scaled up with a smoothing interpolation will blur. It's usually safer to export at the final integer multiple from Illustrator, or to check how your scaling and quality settings behave before committing to a large comp. Confirm the result at 100% zoom in the Composition panel, not just in a fitted view.
As vector for After Effects
You can bring in the .ai file directly and enable Continuously Rasterize, which keeps edges sharp at any scale. Seams may reappear if tiles aren't united or aligned, so check at your final output size. For animated sprites, converting the file to shape layers (Layer > Create Shapes from Vector Layer) lets you animate individual blocks, though a large tile count can slow down a comp.
For 3D tools
If the art becomes a texture in Blender or Cinema 4D, export a small PNG and set texture sampling to nearest-neighbor. In Blender this is the "Closest" interpolation on the Image Texture node. Otherwise the texture will blur at close range.
Preparing sprite frames for animation
Pixel animation usually means a handful of frames, not a rendered curve. A practical setup in Illustrator:
- Create one artboard per frame at identical dimensions.
- Name artboards sequentially (walk_01, walk_02, and so on) so Export for Screens produces an ordered image sequence.
- Keep shared elements on a locked layer and duplicate only the parts that change.
- Import the sequence into After Effects as an image sequence and set the frame rate to match your intended step rate, such as 8 or 12 fps, in a comp running at your delivery rate.
Where Styleframe fits in a pixel-art workflow
Illustrator is the right place to design the pixel assets. Where Styleframe can help is when you want to take that look into motion without hand-animating every frame. If you use any AI tool for upscaling or restyling hard-edged pixel art, be careful, and compare the results against an integer-scaled export from Illustrator, since strict block edges are easy to soften.
A quick checklist
- Set the grid and turn on Snap to Grid and Pixel Preview before drawing.
- Draw in squares or rectangles that match the grid unit, using a limited palette of global swatches.
- For conversions, rasterize first, run Object > Create Object Mosaic with Use Ratio on, then delete the leftover raster and background tiles.
- Unite same-color shapes with Pathfinder to reduce seams.
- Export PNGs at whole-number scales with anti-aliasing off.
- Check at 100% in After Effects, and use nearest-neighbor sampling in 3D tools.
Once the grid is set up and the export settings are right, Illustrator handles pixel art well, and the finished assets slot cleanly into motion pipelines.