HTML Figure Generator
Build a semantic HTML <figure> element with <figcaption> for accessible image markup — and copy the ready-to-use HTML.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is HTML Figure Generator?
The HTML `<figure>` element wraps self-contained content — typically an image — that is referenced from the main document flow. The `<figcaption>` child provides a visible caption and improves accessibility by describing the visual content.
Using `<figure>` + `<figcaption>` instead of plain `<img>` tags gives screen readers and search engines additional semantic context about the relationship between the image and its description. The caption can appear before or after the image inside the figure.
How to Use HTML Figure Generator
Enter the image URL in the Src field
Add descriptive alt text for accessibility
Set optional width and height attributes
Write a caption and choose its position (above or below)
Optionally add an id or class to the figure
Copy the generated HTML
Common Use Cases
- Adding captioned images to blog posts or documentation.
- Creating accessible image markup for screen readers.
- Wrapping charts or diagrams with descriptive captions.
Example Input and Output
A figure element with an image and caption below.
Src: photo.jpg, Alt: A mountain at sunset
Caption: Figure 1 – Sunset over the mountains<figure>
<img src="photo.jpg" alt="A mountain at sunset">
<figcaption>Figure 1 – Sunset over the mountains</figcaption>
</figure>Privacy
All HTML generation runs in your browser. No data is sent to any server.

