Contents
  1. The short answer
  2. Why a true vector circle can look wrong at favicon size
  3. Odd versus even diameters
  4. How generators decide which pixels to fill
  5. Step by step: from generator to favicon artwork
  6. Rebuilding the pattern as clean vector artwork
  7. Verifying the result
  8. Limits of this guide

The short answer

A pixel circle generator takes a diameter in pixels and returns the pattern of grid squares that best approximates a circle at that size. For a favicon or small pixel icon, follow four steps. First, enter the exact number of pixels the circle will occupy at its final display size. Second, choose a filled disc or an outline ring. Third, pick the pattern with the most even, symmetrical steps. Fourth, rebuild that pattern in your logo file so every square sits exactly on the pixel grid. The generator works out which pixels to fill. Your artwork setup decides whether the exported icon stays sharp or turns blurry.

These terms are used throughout this guide:

  • Pixel grid: the fixed lattice of square pixels that a raster image is made of.
  • Rasterization: converting vector paths, which are mathematical curves, into those pixels.
  • Anti-aliasing: shading edge pixels with intermediate tones so that a curve looks smooth. At large sizes this helps. At very small sizes it can make an edge look soft.

Why a true vector circle can look wrong at favicon size

A geometrically perfect circle almost never lines up with whole pixels. When it is rasterized at a small size, many edge pixels are only partly covered, and anti-aliasing fills them with in-between tones. In a large image that fringe is invisible. At common small favicon sizes such as 16×16, one pixel of fringe is a large share of the shape, so the circle reads as fuzzy or lopsided. A pixel circle gives up a little geometric accuracy in exchange for edges that are fully on or fully off.

Odd versus even diameters

The diameter you choose changes where the center of the circle falls.

  • Odd diameter: the center lands in the middle of a single pixel. The circle has one central row and one central column.
  • Even diameter: the center lands on the corner where four pixels meet. The circle has two central rows and two central columns.

Neither option is better in general. Match the choice to the canvas and the other elements in the mark. A circle centered on a 16×16 canvas needs an even diameter to sit exactly in the middle. An odd diameter on that canvas will sit half a pixel off-center unless you accept that offset.

How generators decide which pixels to fill

Most generators use one of two methods. Some test the distance from each pixel's center to the circle's center. Others trace the edge with a stepping method such as the midpoint (Bresenham-style) circle algorithm. The distance-test version is easy to follow:

d = diameter in pixels
r = d / 2
for each row y from 0 to d - 1:
    for each column x from 0 to d - 1:
        dx = (x + 0.5) - r
        dy = (y + 0.5) - r
        fill pixel if dx*dx + dy*dy <= r*r

Applied to a diameter of 7, that rule produces the pattern below. # marks a filled pixel and . marks an empty one:

..###..
.#####.
#######
#######
#######
.#####.
..###..

Small changes to the threshold produce visibly different shapes at the same diameter. A slightly smaller comparison radius gives a rounder but smaller disc. A slightly larger one gives a fuller, squarer disc. This is why generators often disagree, and why the best approach is to compare a few variants at actual size rather than trust the first result. For an outline ring, fill only the pixels whose distance falls between an inner radius and an outer radius. The difference between the two radii sets the ring's thickness.

Step by step: from generator to favicon artwork

  • 1. Decide the final pixel size of the icon and how many pixels the circle should span inside it, including any margin.
  • 2. Choose odd or even diameter based on where the circle must be centered on that canvas.
  • 3. Generate a filled disc or outline ring at that exact diameter. If the tool offers threshold or smoothing options, generate more than one variant.
  • 4. Compare the variants at 100% zoom and pick the one with the most even stair-steps and no isolated bumps or flat spots.
  • 5. Set up your vector document in pixel units with a grid of one pixel and snapping to the pixel grid turned on.
  • 6. Rebuild the chosen pattern with squares or rectangles placed on whole-pixel coordinates.
  • 7. Merge the pieces into a single compound path so the export contains no hairline seams.
  • 8. Export at exactly the target size, with no scaling or resampling.
  • 9. Verify the result using the checks below.

Rebuilding the pattern as clean vector artwork

Keep the pixel version as filled shapes rather than strokes. A stroke is centered on its path, so a one-pixel stroke on a whole-pixel coordinate straddles two pixel columns and blurs both. If you start from an outline ring, convert it to a filled outline path before export. Combining runs of filled pixels into horizontal rectangles keeps the path count low and makes later edits easier. Uniting everything into one shape removes the faint gaps that can appear between adjacent squares during rasterization.

Treat this pixel-refined circle as a size-specific variant of the logo, not a replacement for the master artwork. As a design recommendation, keep the smooth geometric circle for larger exports and high-density displays, where anti-aliasing reads as smooth. Keep the grid-fitted version for the smallest sizes, where crisp edges matter more than exact curvature.

Verifying the result

  • View the export at 100% and at the actual size it appears in a browser tab, not only zoomed in.
  • Check symmetry: the pattern should mirror left to right and top to bottom, unless an offset was intentional.
  • Check the stair-steps: step lengths should change gradually around the curve, with no single-pixel spikes or unexpectedly long flat runs.
  • Check the edges: there should be no semi-transparent or intermediate-tone pixels unless you added them on purpose.
  • Check placement: the circle should sit where you planned on the canvas, with margins that match the rest of the icon.
  • Preview on both light and dark backgrounds, since tab bars and bookmark lists vary.

Limits of this guide

No verified evidence was available about specific generator tools, their default settings, or current platform requirements for favicon sizes and file formats. Check required sizes against current browser and platform documentation before final delivery. A file extension alone does not confirm that a delivered icon contains editable vector paths or that the logo may be reused. Confirm both by inspecting the file and the usage rights.