iOS Asset Scaler
- Runs in your browser
- Nothing uploaded
- No sign-up
Updated · DRISH LABS
How do you make @1x, @2x and @3x images for Xcode?
An iOS image needs one version per display scale: @2x and @3x for iPhone, @1x and @2x for Mac. Each is the point size multiplied by its scale, so an image 100 points wide is 100, 200 and 300 pixels. Start from the @3x and scale down, because a source with too few pixels has to be enlarged and goes soft. Xcode reads the files from a .imageset folder with a Contents.json.
How it works
- Drop the largest version of the image — usually the @3x — as a PNG, JPEG, WebP or SVG. A file already named name@2x.png is read as the @2x.
- Say which scale it is, or type the width in points you want it drawn at. The page shows the size in points and, for each scale, the size in pixels.
- Choose the scales: iOS (@2x and @3x), Mac (@1x and @2x) or all three — the sets Apple’s guidelines list for each platform — and, for single-colour icons, whether Xcode should render it as a template.
- Make the files. Each smaller scale is drawn from the source with a stepped downscale that keeps edges sharp; an SVG is drawn fresh at every size. Transparency is kept.
- Download name.imageset as a ZIP: the PNGs named name.png, name@2x.png and name@3x.png, and a Contents.json laid out as Xcode writes it. Unzip it into Assets.xcassets and the image is there.
Points, pixels and scale
iOS lays out in points; a display’s scale factor says how many pixels make one point along each side. An image 100 points wide needs 100 pixels at @1x, 200 at @2x and 300 at @3x. Starting from the @3x and scaling down keeps every version as sharp as the original allows; starting small and scaling up only makes a blurrier copy. A point size that is a whole number divides cleanly at every scale — 1242 pixels at @3x is 414 points and 828 pixels at @2x — while an @3x width of 1000 has no exact @1x.
pixels = points × scale · @1x = @3x ÷ 3, @2x = @3x × 2 ÷ 3
When you need it
- An illustration from a designer, at @3x
- Designers often export only the largest size. Drop it, leave “This image is the @3x”, and the @2x is made from it with the same name and the catalog entry to match.
- A Mac app’s images
- macOS uses @1x and @2x. Choose the Mac preset and the @3x is left out of both the files and the Contents.json.
- A tintable icon
- A single-colour glyph that should take the tint colour — a tab bar icon, a toolbar button — gets “Render as: Template”, which writes template-rendering-intent into the catalog so Xcode draws it in the current tint.
- An SVG that needs bitmaps
- Drop an SVG and set the point size: each scale is rasterised from the vector at its own size, so the @3x is as sharp as the @1x.
Questions
Which scales does an iPhone app need?
Apple’s guidelines list @2x and @3x for iOS, @2x for iPadOS and watchOS, and @1x and @2x for macOS and tvOS. No current iPhone is @1x, so an iPhone-only app can leave it out.
Should I use SVG or PDF in the catalog instead?
For flat icons and simple artwork, Apple recommends vector files — PDF or SVG — which Xcode can scale for you. Use this page for bitmap art: photos, illustrations, textures, or anything a vector would not reproduce.
Why is my image soft at @3x?
Because the source has fewer pixels than the @3x needs, so it had to be enlarged. The page names which scales were enlarged. Start from a larger export or from the vector original.
Why are my @1x sizes rounded?
A source whose point size is not a whole number has no exact pixel size at every scale — an @3x 1000 pixels wide is 333.33 points. The sizes are rounded to the nearest pixel and the page says so; make the source a multiple of 3 pixels wide to avoid it.
Is transparency kept?
Yes. In-app images may have transparency, so the PNGs keep their alpha channel. (The App Store’s own uploads — screenshots and the 1024 icon — are the ones that must not, and the screenshot resizer and icon generator handle those.)
Is my image uploaded?
No. It is drawn and encoded by your browser, and the ZIP is built in memory.
Keep going
App Icon Generator
A 1024×1024 PNG in; every iOS.
Free toolFavicon Generator
One square image in; every favicon PNG.
Free toolImage Compressor
Shrinks JPEGs and WebPs by quality or to a target size.
Free tool