Design systems · Layout rhythm · Mobile UI

Mobile Spacing Scale Generator

Build a spacing system for Android and iOS from one base unit, then preview how each token renders at common densities and Retina scales.

Android + iOS spacing tokens

Generate a mobile spacing system

Start from a base unit, choose how aggressive the scale should be, and instantly preview the same spacing token in logical units plus Android and iOS pixel outputs.

Ratio presets
Scale summary
4 to 19.5

Base 4 · Ratio 1.25 · 8 tokens

Android preview density
iOS preview scale
TokenLogical unitAndroid pxiOS pxPreview
2xs4dp / pt8px12px
xs5dp / pt10px15px
sm6.5dp / pt13px19.5px
md8dp / pt16px24px
lg10dp / pt20px30px
xl12.5dp / pt25px37.5px
2xl15.5dp / pt31px46.5px
3xl19.5dp / pt39px58.5px

More Mobile Dev Tools

Start simple

Most product teams begin with a 4-point or 8-point base and then decide whether they want linear spacing or a slightly more expressive ratio for larger gaps.

Great for handoff

The table makes it easier to hand the same token set to design, Android, and iOS teams while still exposing the real pixel consequences on each platform.