Skip to content
uxTools
Gaming

Roblox UDim2 Scale & Offset Converter

Convert Roblox UI sizing and positioning between Scale and Offset on each axis, and build a paste-ready UDim2.new(...) value — all live, all in your browser.

Generated UDim2
UDim2.new(0.5, 0, 0.5, 0)
Quick starts

Parent size

Enter the on-screen pixel size of the parent element. Scale is converted to offset (and back) against this size on each axis.

Parent width
Parent height

Axes

X axishorizontal — uses parent width
Scale
Offset (px)
Y axisvertical — uses parent height
Scale
Offset (px)

About UDim2

A Roblox UDim2 has two axes, each made of a Scale and an Offset: the final pixel size of an axis is scale × parentPixels + offset. Scale stays proportional as the screen resizes; offset is a fixed pixel amount. This tool converts one to the other for a parent size you choose and assembles UDim2.new(xScale, xOffset, yScale, yOffset), plus the UDim2.fromScale and UDim2.fromOffset shorthands. It runs entirely in your browser.