Contents
  1. The short answer
  2. Terms you need
  3. Fit, fill or stretch: what a converter's resize mode does
  4. The scaling calculation
  5. Step by step: starting from vector artwork
  6. Step by step: starting from a raster file
  7. How to verify the result
  8. Legibility at 256 pixels
  9. Caveats before you deliver

The short answer

A 256x256 image is a square, with a 1:1 aspect ratio. Most logos are not square. To convert a logo to 256x256 without distortion, scale it uniformly so its longer side fits inside 256 pixels. Then center it on a 256x256 canvas and fill the leftover space with transparency or a solid background. Never resize width and height independently to force the logo into the square, because that stretches or squashes the artwork.

If the logo must fill the whole square with no empty space, use a square version of the brand mark, such as a symbol or monogram. You can also crop deliberately. Squeezing a wide wordmark into a square is not an acceptable substitute.

Terms you need

  • Aspect ratio: the relationship between width and height. A 256x256 output has a ratio of 1:1.
  • Proportional (uniform) scaling: resizing width and height by the same factor, so the shape of the logo stays the same.
  • Canvas or artboard: the fixed area being exported. Here it is 256 by 256 pixels, and the logo sits inside it.
  • Padding (or safe area): empty space between the logo and the canvas edge.
  • Vector artwork: artwork built from mathematical paths. It can be scaled to any size without losing sharpness.
  • Raster artwork: artwork built from a grid of pixels. Enlarging it beyond its original pixel dimensions makes it blurry or blocky.
  • Resampling: how software calculates new pixels when a raster image changes size.

Fit, fill or stretch: what a converter's resize mode does

Online converters and image editors usually offer several resize modes, often under different names. Before exporting, check which mode is active.

Mode | Proportions preserved? | What happens to a non-square logo
Fit / contain | Yes | The whole logo is visible; empty space is added on two sides
Fill / cover | Yes | The square is filled completely; parts of the logo are cropped off
Stretch / exact size / ignore aspect ratio | No | The logo is distorted to match 256x256

For a complete, undistorted logo, choose fit or contain. Choose fill or cover only when you have checked that the cropped area contains nothing essential.

The scaling calculation

Any tool that preserves proportions applies the same logic. Divide the target size by the logo's longer side, then multiply both dimensions by that single factor. If you want padding, subtract it from 256 before dividing.

scale      = 256 / max(original_width, original_height)
new_width  = original_width  * scale
new_height = original_height * scale

# with padding on every side:
scale      = (256 - 2 * padding) / max(original_width, original_height)

Step by step: starting from vector artwork

Vector source files give the cleanest 256x256 result. The software draws the paths directly at the target size instead of shrinking or enlarging existing pixels.

  • 1. Open the vector logo in a vector editor and create a new artboard of 256 by 256 pixels.
  • 2. Place or paste the logo onto the artboard.
  • 3. Lock proportions (often a chain or link icon, or holding a modifier key while dragging). Then scale the logo until its longer side fits within the artboard, minus any padding you want.
  • 4. Align the logo to the horizontal and vertical center of the artboard.
  • 5. Check the stroke settings. Some editors can scale stroke widths with the object or leave them fixed. Fixed strokes can look too heavy or too thin after resizing.
  • 6. Make sure live text has either been converted to outlines or uses fonts available on the exporting machine. Otherwise a substitute font may appear.
  • 7. Export the artboard as PNG at 1x (256 by 256 pixels). Use a transparent background if the logo will sit on varying colors.

Step by step: starting from a raster file

  • 1. Check the original pixel dimensions. If both sides are already larger than 256 pixels, shrinking will generally keep the result acceptably sharp. If the image is smaller, enlarging it will soften it, and a vector or higher-resolution source is the better option.
  • 2. In the converter or editor, choose a fit or contain mode, or enable "constrain proportions".
  • 3. Set the canvas to 256 by 256 and center the resized logo on it.
  • 4. Choose a transparent background if the source has transparency and the target format supports it, such as PNG. Otherwise pick a solid color that matches the intended use.
  • 5. Export, then run the checks below.

If you use the command-line tool ImageMagick (version 7 syntax shown), the command below fits a raster logo within 256x256 while keeping its proportions. It then pads the result to an exact transparent square.

magick input.png -resize 256x256 -background none -gravity center -extent 256x256 output.png

How to verify the result

  • Confirm the exported file is exactly 256 by 256 pixels in an image viewer or file properties panel.
  • Compare the logo's visible width-to-height ratio with the original. They should match, apart from any rounding to whole pixels.
  • View the image at 100% zoom, not enlarged, to see it as it will actually appear.
  • Check circles and other geometric shapes in the logo. Ovals where there should be circles indicate stretching.
  • Preview it on both light and dark backgrounds to catch halos, rough transparent edges or elements that disappear.
  • Make sure nothing important was cropped if you used a fill or cover mode.

Legibility at 256 pixels

This is a design recommendation, not a fixed rule. A logo that works on a poster can lose detail at 256 pixels. This applies especially when a wide wordmark is fitted into a square, since it ends up occupying a thin band across the middle. Fine lines, small taglines and tight letter spacing are often the first to blur. If that happens, a simplified or square variant of the logo usually reads better than a scaled-down full lockup.

Caveats before you deliver

  • A file extension is not proof of content. A file ending in .svg, .eps, .ai or .pdf can still contain embedded pixel images, which will not scale cleanly. Check whether the artwork is made of paths before relying on it as a vector source.
  • Having a logo file does not mean you are permitted to reuse or modify it. Confirm usage rights or brand guidelines before resizing and publishing someone else's mark.
  • The evidence for this guide includes no requirements for any particular platform. If the 256x256 image is for a specific app store, profile, favicon set or marketplace, check that destination's documentation. Padding, file format, background and file size limits vary and are not covered here.