L13 / Tools / UDim2

UDim2 converter

Design your UI in pixels, then convert it to scale so it looks the same on phones, tablets and PCs.

Screen you designed on

Element size (pixels)
Element position (pixels)
Where the anchor point sits, measured from the top-left of the screen.

Preview

Scale (recommended)

Offset (fixed pixels)

How it looks on other screens

ScreenWith scaleWith offset

Scale vs offset

UDim2.new(xScale, xOffset, yScale, yOffset) mixes two units. Scale is a fraction of the parent's size, so 0.5 always means half. Offset is fixed pixels, so a 480-pixel-wide frame fills most of a phone screen but only a quarter of a PC screen. Use scale for size and position, then add a UIAspectRatioConstraint so squares stay square.

Tips