http://gaming.riderweb.net/content/grid.php
The page will give you the BB code for the image and will display it on the screen once it is created.
The grid is a square, but will adjust to match the shape of the original image. So the grid "squares" may not be squares.
example
Before
Spoiler:
Spoiler: