Image

Runs in your browser. No file uploads for processing.

Roblox Atlas Rects

Turn named TexturePacker or Aseprite JSON frames into Roblox ImageRectOffset and ImageRectSize, with a check for incompatible sprites.

Loading tool...

How to convert atlas JSON to Roblox crop rectangles

  1. Use one atlas page

    Export named sprites as JSON Hash or JSON Array, with rotation and trimming disabled for direct rectangles. Paste the JSON or choose the UTF-8 file. Optionally choose its original PNG to compare header dimensions.

  2. Review which frames can be used directly

    The built-in example maps idle.png to offset (2, 4) and size (12, 16). Turned and trimmed frames are flagged and omitted. If the PNG dimensions disagree with the JSON, no export is made.

  3. Download the named Luau table

    After uploading the atlas to Roblox yourself, use the named entry’s ImageRectOffset and ImageRectSize on an ImageLabel or ImageButton showing the matching atlas. Check a few sprites in Studio before use.

Use cases

  • Transfer named icons from a single UI atlas without retyping each crop.
  • Find rotated, trimmed, polygon or out-of-bounds entries before attempting direct rectangular crops.

Limits and privacy

  • Up to 500 frames; JSON up to 512 KiB. Optional PNG uses its 33-byte header only, not a visual or checksum match. A same-size wrong image cannot be detected.
  • Single-page, rectangular and explicitly unrotated/untrimmed frames only. No repacking, platform upload, automatic scaling or Studio validation.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

What if I only have a regular grid and no atlas JSON?

Use Roblox Image Rect Calculator to calculate crop coordinates for a grid. This JSON mapper is for atlas exports with already named frames.

How do I convert a TexturePacker or Aseprite JSON atlas to Roblox rectangles?

Provide a JSON Hash or JSON Array with named frames, frame x/y/w/h and explicit rotated and trimmed flags. The tool shows direct rectangles and exports them as a named Luau table.

Can ImageRectOffset correct a rotated atlas sprite?

No. These properties select an axis-aligned region. Re-export with rotation disabled. Turn trimming off too when you need direct crops with original frame placement.

Does this upload, resize or validate the Roblox asset?

No. It checks the JSON and optional local PNG header. It never edits the atlas or checks the uploaded Roblox asset; use the matching sheet and confirm crops in Studio.

Related tools