Images

HTML Image Map Generator

Create clickable zones on images. Rect, circle and poly. Undo/redo, snap to grid, zoom. Export HTML or JSON.

Upload an image to start drawing areas

JPG, PNG, WebP, GIF, SVG

Built by

Miguel Ángel Colorado Marin

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

How to create an image map

  1. 1

    Upload your image

    JPG, PNG, WebP, GIF or SVG. The image loads into the interactive canvas with zoom and scroll.

  2. 2

    Draw areas on the image

    Choose Rect, Circle or Polygon and draw directly on the image. Use snap to grid for pixel precision and zoom for small details.

  3. 3

    Edit href, alt and title of each area

    After drawing, edit the properties of each clickable zone. The side panel allows editing without needing to redraw.

  4. 4

    Export and use the code

    Copy the generated HTML (img + map + area) or JSON. Download if you prefer to save the file.

Use cases for HTML image maps

HTML image maps are a native standard technique that allows defining multiple clickable zones on the same image, each with its own link, alternative text and tooltip. They are especially useful for interactive geographic maps, architecture or infrastructure diagrams with linkable zones, infographics with navigable sections, visual menus in game interfaces or applications.

Unlike JavaScript solutions that overlay div elements on the image, HTML image maps are part of the DOM and accessible by default to screen readers. The alt attribute of each <area> becomes the descriptive text that screen readers announce when navigating with the keyboard, making the solution semantically correct and compliant with WCAG guidelines.

Frequently asked questions

What is an HTML image map?

An image with multiple clickable zones, each with its own link. Defined with usemap in <img> and a <map> element with <area> that specify coordinates and URLs for each zone.

What shapes are supported?

The three HTML standard shapes: rect (x1,y1,x2,y2), circle (cx,cy,radius) and poly (x,y pairs for each vertex). Polygons allow creating areas of any shape.

Are the coordinates relative or absolute?

Absolute in pixels of the image's natural size. For responsive images that resize with CSS, the coordinates do not adapt automatically — you would need additional JavaScript.

What is the alt for in each area?

Accessibility. Screen readers use it to describe the link destination to visually impaired users. It is good practice (and in some contexts legally required) to always include it.

Can I export as JSON?

Yes. JSON mode exports an array with each area's properties (shape, coords, href, alt, title). Useful for React, Vue or other frameworks where you build the HTML dynamically.

Related tools

Embed this tool

<iframe src="https://miguelacm.es/embed/image-map-generator" width="100%" height="750" style="border:none;border-radius:16px;" loading="lazy"></iframe>