Rounding pixels per square
Foundry accepts decimals, but 68.5 px grids drift on large scenes. Export whole-number multiples instead.
Export a grid-accurate PNG from RPG Map Editor, set it as a Foundry scene background, and align the scene grid in minutes—then build walls, lights, and tokens where they belong: inside Foundry.
Quick answer: Export a PNG from RPG Map Editor whose width and height are multiples of your pixels-per-square value, place it as a Foundry scene background, then set Foundry's grid size to the same pixels-per-square and shift the origin until squares track. Walls, doors, and lighting are added inside Foundry—RPG Map Editor does not export them.
Formula: export width = columns × pixels per square, export height = rows × pixels per square. Divisible dimensions are what keep Foundry's grid from drifting.
| Map size (squares) | At 70 px/sq | At 140 px/sq | Good for |
|---|---|---|---|
| 20 × 20 | 1400 × 1400 px | 2800 × 2800 px | Taverns, single rooms |
| 30 × 20 | 2100 × 1400 px | 4200 × 2800 px | Roads, camps, medium fights |
| 40 × 30 | 2800 × 2100 px | 5600 × 4200 px | Arenas, set pieces |
Need different numbers? The D&D battle map size guide includes an export-resolution calculator.
Foundry accepts decimals, but 68.5 px grids drift on large scenes. Export whole-number multiples instead.
Draw walls only after the background and grid are final—otherwise every wall is off by the same offset.
A grid that looks aligned at the start of a corridor often drifts by its end. Verify across the full map.
Foundry is flexible: set your scene grid size to match the artwork. Export a PNG whose pixel width and height are multiples of your intended pixels-per-grid-unit so scaling stays predictable.
Not today. The workflow is PNG import into Foundry; configure walls, doors, and lighting inside Foundry after the image is on the scene.
Create a scene with the image, open grid configuration, match cell size in pixels to your export math, then shift the grid origin until it tracks the printed grid in the art.
RPG Map Editor’s export path discussed here centers on PNG for broad VTT compatibility. If you convert formats, verify transparency and sharpness after conversion.
Size the map before export, check the Roll20 workflow, or start a new encounter map.