NewSmall or blurry image? Upscale it with AI before you download.Try it →

Image Map

Full-size preview and original-resolution export

Private on this device · 0 credits

Nothing is uploaded. Your file stays in this browser tab and uses 0 credits.

Image Map

Ready in your browser

Preview fits the workspace

Drop a file anywhere in this workspace

JPEG, PNG, WebP, GIF, BMP, SVG and browser-supported AVIF images

Image Map online

Image Map turns a rectangle you set on your picture into HTML: an img tag with usemap, plus a map with one clickable area linking where you choose. The code downloads as an .html file, and the preview shows the area outlined in red.

Image Map online tool preview
What Image Map looks like in use.

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

01

Email banners

Make one part of an HTML email banner link to a sale page.

02

Floor maps

Link a room on a venue map image to its booking page.

03

Linked infographics

Turn one panel of a fixed-size infographic into a link to its source.

Start to finish

How to use Image Map

  1. 01
    Tap Choose image and pick the exact image file your web page will show.
  2. 02
    Enter Map name, Selected area link, and Area left, top, right and bottom as percentages, then tap Apply changes.
  3. 03
    Check the red rectangle, then Download result to get the -image-map.html code to paste into your page.

What to expect from Image Map

CheckWhat it means here
Supported inputJPEG, PNG, WebP, GIF, BMP, SVG and browser-supported AVIF images
Main controlsWidth and height, plus the labels, colors, data, or layout the tool needs
OutputPNG, SVG, HTML code, or a ZIP, depending on the tool
Working limitUp 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?

The area that comes first in the code. Order your area lines from smallest to largest when one region sits inside another.

Can I use this image map online tool for a circle or polygon?

No. It only writes rect areas. A circle takes shape="circle" with coords of center x, center y and radius; you can get the center point in pixels from Find Coordinates and type that area by hand.

Will the clickable area still line up if the image is resized on the page?

No. HTML image maps use fixed pixel coordinates, so the area only lines up when the image is shown at its natural size. For responsive pages, use a small script or an absolutely positioned link instead.

Can I add more than one area or a circle?

Each run makes one rectangle. For more areas, run it again and paste the extra area lines into the same map.

Why is alt empty in the code?

The tool cannot know what the area means. Add a short description to the alt of both the img and the area, so screen readers can announce the link.

Does Image Map upload my file?

No. Your browser does the work and clears the file when you leave the page. File names, pixels, and metadata are not sent to analytics.

Is Image Map free to use?

Yes. No signup and no watermark.

Why did Image Map fail or look wrong?

If the tab stops responding, the file is too big for this device's memory. iPhone HEIC photos may need exporting as JPEG first.

Help improve ExtractPics

Send feedback

About Image Map

What kind of feedback is this?
Quick rating

Do not include passwords or private data.0 / 2000

Daily limit

You’ve used today’s credits