b2KIT

Image Map Generator

Create clickable HTML image maps with rectangular, circular, and polygon hotspots.

Tested tool guide Tested browser tools Checked August 16, 2026

What Image Map Generator does and how it behaves

Image Map Generator converts regions drawn over one image into the coordinate data used by an HTML image map. Mark a rectangle, circle, or polygon around each pictured target, associate the region with a destination, and use the resulting `<area>` entries inside a named `<map>` referenced by the image's `usemap` attribute. This is geometry, not object recognition: the saved numbers do not know that a polygon surrounds a building or that a circle covers a button. The common surprise is that a correct hotspot can stop matching after the source is cropped, padded, replaced, or displayed at dimensions that no longer correspond to the chosen coordinates.

How the result is produced

1

Shape coordinates

Each shape has a distinct `coords` grammar. A rectangle is `left,top,right,bottom`; a circle is `center-x,center-y,radius`; a polygon is a sequence of `x,y` vertex pairs. The origin is the image's top-left corner, x moves right, and y moves down. Polygon vertices should follow the boundary in order. The last point connects back to the first, so repeating the opening pair is unnecessary.

2

Map association

HTML connects the pieces by name: `<img usemap="#diagram-map">` selects `<map name="diagram-map">`. Each region becomes an `<area>` whose `shape` and `coords` describe the hit target and whose `href` identifies the destination. A linked area should have useful `alt` text naming its destination or purpose. The map changes where the image acts as a link; it does not alter pixels, cut out regions, or add permanently visible boundaries.

Good uses

  • Building a venue guide in which individual rooms, booths, entrances, and service points on a floor-plan illustration open their own information pages.
  • Making components in an exploded product diagram link directly to the matching repair procedure, part record, or replacement ordering page.
  • Turning labeled regions of a campus, park, transit network, museum, or geographic illustration into distinct navigation destinations without slicing the image into separate files.

Limits and checks

  • Coordinates stay attached to positions, not pictured objects. Recropping, padding, or replacing the source can move a subject while leaving every hotspot unchanged, so recheck the map whenever the underlying artwork changes.
  • Responsive presentation needs explicit verification. If the rendered image and coordinate system are not kept in step, targets can drift or change size. Test each important breakpoint and use coordinate recalculation or another overlay technique where required.
  • Polygon quality depends on ordered vertices, and overlapping areas remain separate links. A self-crossing outline, a missed corner, or two areas covering the same point can produce an unexpected hit target, especially near boundaries.

Common questions

Can I enter percentage coordinates?

No. `coords` values are numeric positions, not CSS percentage declarations. Enter rectangle edges, a circle center and radius, or polygon vertices in the coordinate system used for the image. If the image must resize, do not replace `100` with `50%`; verify alignment at the rendered sizes and use a responsive image-map approach that updates the numeric coordinates when required.

Will visitors see the hotspot shapes?

No. HTML image-map geometry defines clickable regions but does not, by itself, paint persistent outlines or fills over the image. If regions must be visible, include boundaries in the source artwork or add a separately designed visual overlay. Make each link's purpose understandable without relying only on shape or color, and give every linked area meaningful alternative text.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools