The short answer
Why use Image Map?
Working out pixel coordinates for an area tag by hand means measuring the image and doing the arithmetic. Here you set the edges in percent and the tool writes the coordinates for the full-size image.
Set Map name (default extractpics-map) and the Selected area link. Then place the rectangle with Area left, top, right and bottom, each a percentage of the image from 0 to 100; the defaults leave a 10% margin all round. On Apply changes, the percentages are converted to pixel coordinates of the original image and shown in the status line.
The img src in the code is the file name you uploaded, so the image must sit next to the HTML with the same name, or you change the path. The map name is cleaned to letters, numbers, dashes and underscores. The download holds the code only; your image is not included in it.
Find Coordinates gives the exact x and y of any single point, which helps when you want to check where an edge sits before typing the percentages. To link a whole image rather than part of it, a plain a tag around the img is simpler than an image map.
How the image map generator turns percentages into coords
Take a 1200 × 600 px banner where only the right half should link to a sale. Set Area left to 50, top to 0, right to 100 and bottom to 100. On Apply changes the status line shows 600,0,1200,600, and the area tag in the code carries coords="600,0,1200,600". Percentages are rounded to whole pixels of the file you uploaded.
For a rectangle, coords means left edge, top edge, right edge and bottom edge, measured from the top-left corner of the image. It is not x, y, width and height, which is the slip people most often make when they write an area by hand.
The map name is tidied before it goes into the code: Summer Sale! becomes Summer-Sale. The usemap attribute on the img carries the same name with a # in front, and the two have to match letter for letter or the links do nothing.
Several links on one image map
Each run writes one rectangle. For a second link, change the four edges and the Selected area link, apply again, then copy only the new area line and paste it inside your first map element, just above the closing map tag. Repeat for as many regions as you need.
Where two areas overlap, the browser follows the first one listed in the code. Put small areas, such as a button inside a larger panel, above the big one so the button keeps its own link.
Retina images, scaled pages and email
The coordinates count pixels in the file, not on the screen. If you export a banner at 2400 px for sharp retina screens and show it at width 1200, every number has to be halved. The simpler route is to upload the version the page shows at its displayed size, or make one with Resize Image, then build the map from that.
Email clients differ in how well they keep map and area tags, so send a test to the inboxes your readers use before a campaign. The fallback many senders use is slicing the banner into separate images, each wrapped in its own link; Image Splitter cuts a picture into an even grid of pieces for that.
Where Image Map fits
Email banners
Make one part of an HTML email banner link to a sale page.
Floor maps
Link a room on a venue map image to its booking page.
Linked infographics
Turn one panel of a fixed-size infographic into a link to its source.
Start to finish
How to use Image Map
- 01Tap Choose image and pick the exact image file your web page will show.
- 02Enter Map name, Selected area link, and Area left, top, right and bottom as percentages, then tap Apply changes.
- 03Check the red rectangle, then Download result to get the -image-map.html code to paste into your page.
What to expect from Image Map
| Check | What it means here |
|---|---|
| Supported input | JPEG, PNG, WebP, GIF, BMP, SVG and browser-supported AVIF images |
| Main controls | Width and height, plus the labels, colors, data, or layout the tool needs |
| Output | PNG, SVG, HTML code, or a ZIP, depending on the tool |
| Working limit | Up to 8,000 pixels per side |
Image Map tips
- Defaults leave a 10% margin on every side of the image.
- Coordinates are fixed pixels, so show the image at its natural size.
- Fill in both alt attributes so screen readers can name the link.
- Keep the image filename the same as the src in the code.
Image Map FAQ
Something missing? Ask us.
Which link wins where two areas overlap?
Can I use this image map online tool for a circle or polygon?
Will the clickable area still line up if the image is resized on the page?
Can I add more than one area or a circle?
Why is alt empty in the code?
Does Image Map upload my file?
Is Image Map free to use?
Why did Image Map fail or look wrong?
Related tools
More in Utilities.
