How to Add a Grid to a Battle Map
TutorialsGuides

How to Add a Grid to a Battle Map (and How to Remove One)

By Tyler VDecember 1, 2026
A top-down fantasy battle map of a stone hall with a crisp light square grid overlay being applied across the right half of the image

You have a battle map image and it has no grid, or it has a grid and you wish it did not. Both problems come up constantly, and both have straightforward fixes once you know which tool to reach for. The wrong instinct is to start dragging guides around in an image editor, because for most uses you do not need to touch the image at all.

This guide covers the fast software answers first, then the manual overlay methods for when you genuinely need the grid burned into the file, then the removal question, which is harder and worth understanding before you try.

The short answer

For virtual tabletop play, do not add a grid to the image. Upload the map and let Roll20, Foundry, or Owlbear Rodeo draw the grid, then scale the image until one map square matches one page square. For printing or for a flat screen under miniatures, add the grid in an image editor: create a new layer, fill it with a square pattern sized to one inch per square, set it to about 30 percent opacity, and flatten. The whole job takes about two minutes once the square size is known.

First, work out your square size

Everything below depends on one number: how many pixels wide one five foot square should be.

If the map was made for a specific size, you already know it. If not, measure something familiar. A standard door is five feet wide, a corridor is usually five or ten, and a bed is about five by ten. Measure that feature in pixels in any image viewer and you have your square. If the map is 2,100 pixels wide and the scene is meant to be thirty squares across, your square is 70 pixels.

70 pixels per square is Roll20's default and the most common delivery size. 140 pixels per square is the crisp zoom standard that most map studios use. 300 pixels per square is the print target, because one square becomes one physical inch at 300 dots per inch. The full conversion table lives in our battle map size guide.

Method 1: let the VTT draw it (Roll20, Foundry, Owlbear Rodeo)

This is the correct method for anything you play online, and it takes less than a minute.

Roll20. Open the page settings, set the page size in units to your map size in squares, and leave the grid enabled at 70 pixels per unit. Upload the image to the map layer, then use the token alignment handles to stretch it until the art fills the page exactly. Every map square now sits under one page square.

Foundry VTT. Create the scene, upload the background image, and open the grid configuration tool. Foundry gives you a live preview: drag the grid until its spacing matches a feature you know is five feet, then confirm. Foundry stores the grid size and offset per scene, so a map whose art does not start neatly at the corner is still fine.

Owlbear Rodeo. Import the map and set the number of columns and rows to match the scene. Owlbear infers the square size from that and draws the grid on top. Our Owlbear Rodeo setup guide walks through the whole import.

In all three, the grid is a live layer. You can hide it, recolor it, or change the scale at any time without touching the original file, which is exactly why gridless masters are the sensible thing to keep. Our comparison of gridded and gridless maps explains the tradeoff.

Method 2: add a grid in an image editor

Use this when the map is going to paper, onto a flat screen, or into a chat window where no software will help.

GIMP (free).

  1. Open the map and add a new transparent layer.
  2. Choose Filters, then Render, then Pattern, then Grid.
  3. Set both the horizontal and vertical spacing to your square size in pixels, set line width to 1 or 2, and pick a mid gray or black line color.
  4. Confirm, then lower the layer opacity to somewhere around 25 to 35 percent.
  5. Flatten the image and export as PNG or JPG.

Photoshop.

  1. Create a new document exactly one square wide and one square tall, draw a single pixel line along the top and left edges, and define it as a pattern (Edit, then Define Pattern).
  2. In your map file, add a new layer and fill it with that pattern.
  3. Drop the layer opacity to around 30 percent and flatten.

Browser tools. Several free sites will take an image, let you drag a grid to fit, and hand back a gridded copy. The Map Gridder from The GM Craft Tavern is one, and it does hex grids as well as squares. They are the quickest option if you only do this occasionally, and they avoid installing anything. Check the output resolution before you rely on one for print work, because some of them downscale.

Whatever tool you use, set the grid offset so that the lines land on the walls rather than slicing every doorway in half. A grid that runs one or two pixels off the architecture is much more annoying at the table than one that starts a few pixels in from the edge.

Method 3: the print specific route

For printing, the grid is not optional and the alignment has to be exact, because miniature bases assume a true one inch square. Work at 300 pixels per square so that one square becomes one inch at 300 dots per inch, add the grid overlay at that resolution, and print at 100 percent scale with any "fit to page" option switched off. A printer helpfully shrinking your map by 4 percent is the most common reason a printed grid comes out at 0.96 inches and every measurement is slightly wrong. Our full walkthrough on printing battle maps to scale covers tiling across pages and the large format options.

How to remove a grid from a battle map

This is the question with the disappointing answer: you mostly cannot, at least not cleanly. Grid lines painted into an image are pixels sitting on top of the art, and removing them means reconstructing whatever was underneath. There are three partial approaches.

Crop and rescale. If the grid is regular and you only need part of the map, crop to a section where the lines are least distracting. This solves nothing but sometimes it is enough.

Clone and heal. In GIMP or Photoshop, use the healing brush along each line. On a small map with a subtle grid this works. On a full map it is an hour of work and the result looks smeared over textured ground.

Hide it under the VTT grid. If the painted grid is close to square, scale the image so the painted lines sit directly under the software grid. The two sets overlap into one, which looks intentional. This is the realistic fix and it is why the double grid problem is worth solving rather than avoiding.

AI cleanup tools. Inpainting can erase lines across simple textures like stone floors and grass, and it struggles anywhere the line crosses detail. Worth a try on a map you cannot replace, not worth planning around.

The honest conclusion is that the fix belongs at the source. Keep the gridless version of every map you own, and when you generate maps yourself, generate them without a grid.

Skip the retrofit entirely

General image models are notorious for painting warped, uneven grids into battle maps, which leaves you with a grid you cannot align and cannot remove. Text to Tabletop generates at a strict ninety degree top down angle with no baked in grid, so the file you get is the gridless master this whole guide recommends keeping. Add a grid when you print, let the VTT draw one when you play online, and never scale an image to chase somebody else's squares again. Sign up for the Text to Tabletop app, use your 3 free tokens, and start from a clean map.

Share this article:
T

Tyler V

Lead Developer and UX Designer at Text to Tabletop. Passionate about helping GMs and players create better TTRPG experiences.

Ready to Forge Your Next Battle Map?

Describe the encounter and get a grid-aligned, top-down battle map in seconds, then regenerate any area until it matches your vision.

Generate Your First Map Free

3 free map tokens · no credit card required