In short
A caption is the visible text placed under an image to say what it shows, where it comes from or what to notice in it. Not every image needs one: proof photos, diagrams, charts and screenshots benefit from it; decorative visuals do not. The task is to choose which images to caption, write informative captions and mark them up with <figure> and <figcaption> so that browsers, search engines and screen readers connect the text to the image.
Why it matters
Google explains that it derives the subject of an image from the content of the page, and explicitly names captions and image titles among those sources. A caption is the text closest to the image and the one most explicitly tied to it: it helps Google understand what the photo shows and which queries it is relevant for.
For readers, the caption is one of the most-read pieces of text on a page that people skim. It answers the question the image raises (“what am I looking at?”) and it can carry information that alt text should not carry: date, location, photographer, source of a chart.
For generative engines, an image is only reused in an answer if the system understands what it shows. The page's text remains the most reliable material; a precise caption attaches a verifiable fact to the image, where a bare photo says nothing.
Without a caption, or with a vague one (“Illustration”), the image depends solely on its alt text and on the neighboring paragraph, which does not always talk about it.
What it improves
- Google's understanding of the image The caption is one of the documented context signals. Indirect effect on visibility in Google Images, not quantified.
- Reading the page Visitors who skim the page grasp the image's information without reading all the text.
- Accessibility With
<figure>and<figcaption>, assistive technologies announce the caption as tied to the image. - Credibility A dated and attributed photo (“Repair carried out on March 14, 2026, photo: Paul Garnier”) is stronger proof than an anonymous one.
- Reuse in AI answers A fact written in the caption remains readable even if the image is not. No guarantee of citation.
- Rankings No known direct ranking factor; the effect comes from a better understanding of the image and of the page.
How to check
List the figures on a page and their captions in the browser console (right-click, Inspect, Console tab):
[...document.querySelectorAll('main img')].map(img => ({
src: img.currentSrc.split('/').pop(),
alt: img.alt,
caption: img.closest('figure')?.querySelector('figcaption')?.innerText.trim() || '(none)'
}));
Compliant result: informative images (proof photos, diagrams, charts, screenshots) have a caption that is not empty, not identical to the alt text and not generic.
Site-wide, Screaming Frog can extract captions with a custom extraction (Configuration > Custom > Custom Extraction), using XPath:
count(//main//figure[.//img]//figcaption)
count(//main//img)
Compare the two columns by template: a guide page with ten images and zero captions is a priority target.
How to implement
Before you start
Which images to caption.
| Image type | Caption? | What it should say |
|---|---|---|
| Proof photo (job, test, completed project) | Yes | What is shown, date, location, author |
| Diagram, chart, table as an image | Yes | The key takeaway, data source |
| Screenshot | Yes | Screen, version or date, element to notice |
| Product photo in a product page gallery | Rarely | Variant or detail shown, if not obvious |
| Generic stock illustration | No, or replace it | — |
| Decorative image, icon, separator | No | — |
How to write it.
- One or two sentences. Start with the information, not with “Photo of” or “Image showing”.
- Add what the image does not say on its own: context, date, figure, source, credit.
- Do not copy the alt text: the
altreplaces the image for people who cannot see it, the caption complements the image for everyone. A screen reader reads both. - No list of keywords: the caption is read by humans.
Examples for Plomberie Garnier (a fictitious plumber):
| Alt text | Caption |
|---|---|
| Open wall-mounted gas boiler, circuit board removed and set to the side | Replacing the circuit board of a wall-mounted gas boiler, Nantes, March 2026. Photo: Paul Garnier. |
| Bar chart of gas consumption in 2024 and 2025 | After a system power flush, consumption fell by 11% over the heating season (customer's meter readings). |
The figures are fictitious.
The markup. The reference HTML structure:
<figure>
<img src="/images/chaudiere-carte-electronique-nantes.jpg"
alt="Open wall-mounted gas boiler, circuit board removed and set to the side"
width="1200" height="800" loading="lazy">
<figcaption>Replacing the circuit board, Nantes, March 2026. Photo: Paul Garnier.</figcaption>
</figure>
Do not use the image's title attribute as a caption: it only appears on mouse hover, never on mobile, and screen readers do not read it reliably.
A minimal style to set the caption apart from body text:
figure { margin: 2rem 0; }
figcaption { margin-top: .5rem; font-size: .875rem; color: #555; }
WordPress
Versions WordPress 6.4 to 7.1 (block editor and classic editor).
Block editor: select the Image block, click the “Add caption” button in the block toolbar and type the text under the image. WordPress outputs <figure class="wp-block-image"> with a <figcaption class="wp-element-caption">. The Gallery block offers a caption for each image and a caption for the whole gallery.
The caption entered in the Media Library (Media > Library, “Caption” field) is used as the default value on insertion; editing it later does not update images already inserted into content.
Classic editor: the caption is stored as a [caption] shortcode, which WordPress converts into <figure> and <figcaption> on display in themes that declare HTML5 caption support.
For a theme that displays the featured image without a caption, add it in the child theme's template with the_post_thumbnail_caption():
<?php if (has_post_thumbnail()) : ?>
<figure class="image-une">
<?php the_post_thumbnail('large'); ?>
<?php if (get_the_post_thumbnail_caption()) : ?>
<figcaption><?php the_post_thumbnail_caption(); ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
Shopify
Versions Shopify Online Store 2.0 themes, all plans, November 2026.
Product media only have an alt text field, no caption. For a captioned image in a page or a blog post, open the rich text editor, switch to HTML mode with the “Show HTML” button (<>) and paste the <figure> block from the “Before you start” section.
In the theme, a dedicated section lets teams add captioned images without touching the HTML. Create sections/image-legendee.liquid (Online Store > Themes > … > Edit code):
{%- if section.settings.image != blank -%}
<figure class="page-width">
{{ section.settings.image | image_url: width: 1600 | image_tag: loading: 'lazy', widths: '400, 800, 1200, 1600' }}
{%- if section.settings.caption != blank -%}
<figcaption>{{ section.settings.caption }}</figcaption>
{%- endif -%}
</figure>
{%- endif -%}
{% schema %}
{
"name": "Captioned image",
"settings": [
{ "type": "image_picker", "id": "image", "label": "Image" },
{ "type": "inline_richtext", "id": "caption", "label": "Caption" }
],
"presets": [{ "name": "Captioned image" }]
}
{% endschema %}
The image_tag filter uses the alt text entered on the file. The section then appears in the theme editor, under the “Add section” button.
Wix
Versions Wix Editor and Wix Studio, all plans, November 2026.
In the editor, galleries can display a title and a description for each image, and the Blog app lets you add a caption under an image inserted into a post. The exact names of these settings vary between editors (Wix Editor or Wix Studio): look for “caption” or “description” in the image settings, then check the result with the script from the “How to check” section.
Squarespace
Versions Squarespace 7.1, all plans, November 2026.
The Image block offers several layouts; some display a caption under the image (caption field in the block's content tab). Choose a layout where the caption is always visible, not only on hover.
Webflow
Versions Webflow, all plans, November 2026.
In a Rich Text field, select the inserted image: the toolbar lets you enable a caption, rendered as <figcaption>. Outside Rich Text, use the Embed element with the reference <figure> block, or build the structure with a figure-type block containing the image and a text element.
Drupal
Versions Drupal 10 and 11 (CKEditor 5).
With CKEditor 5, select the image and click the caption button in the image toolbar. The text format must have the caption filter enabled: Configuration > Content authoring > Text formats and editors, the relevant format, checkbox of the “Caption images” filter. Without this filter, the caption you enter is not rendered.
Laravel
Versions Laravel 11 to 13.
Centralize the markup in a Blade component, resources/views/components/figure.blade.php:
@props(['src', 'alt', 'width', 'height', 'caption' => null, 'credit' => null])
<figure {{ $attributes->merge(['class' => 'figure']) }}>
<img src="{{ $src }}" alt="{{ $alt }}" width="{{ $width }}" height="{{ $height }}" loading="lazy">
@if($caption || $credit)
<figcaption>
{{ $caption }}
@if($credit)
<span class="figure-credit">{{ __('Photo:') }} {{ $credit }}</span>
@endif
</figcaption>
@endif
</figure>
Usage: <x-figure src="/images/sencha.jpg" alt="Cup of brewed sencha" width="1200" height="800" caption="Sencha brewed for 2 min at 80 °C." credit="Léa Martin" />. If images are managed in a table or a media library, add a caption field and a credit field to the model, next to the alt text, so that the caption follows the image wherever it is displayed.
Next.js
Versions Next.js 15 and 16 (App Router, with @next/mdx for MDX).
import Image from 'next/image';
type Props = { src: string; alt: string; width: number; height: number; caption?: string };
export function Figure({ src, alt, width, height, caption }: Props) {
return (
<figure>
<Image src={src} alt={alt} width={width} height={height} />
{caption && <figcaption>{caption}</figcaption>}
</figure>
);
}
With MDX, declare this component in mdx-components.tsx so that writers can use it directly in content.
Astro
Versions Astro 5 to 7.
---
import { Image } from 'astro:assets';
import photo from '../assets/sencha-infusion.jpg';
---
<figure>
<Image src={photo} alt="Cup of brewed sencha, thermometer showing 80 °C" />
<figcaption>Sencha brewed for 2 min at 80 °C. Photo: Léa Martin.</figcaption>
</figure>
Common mistakes
- Copying the alt text into the caption: the screen reader reads the same sentence twice and the caption adds nothing for other visitors.
- Generic captions (“Illustration”, “Our team”, “Photo 3”): they add no context.
- Caption in a separate paragraph, outside
<figure>: visually fine, but the link between the text and the image is no longer explicit in the code. - Caption shown only on hover or in a full-screen lightbox: invisible on mobile and sometimes missing from the initial HTML.
- Stuffing the caption with keywords: it is visible text, judged like the rest of the page. See write relevant ALT text without keyword stuffing (opens in a new tab).
- Systematically captioning decorative images “for SEO”: noise for the reader.
- Forgetting to translate captions on a multilingual site. See translate ALT text and captions (opens in a new tab).
Frequently asked questions
Do image captions help SEO?
Yes, indirectly. Google says it infers the subject of an image from the content of the page and names captions among those sources. A precise caption therefore helps it understand the image and show it for the right queries in Google Images. It is not a ranking factor in its own right: the effect depends on how relevant the image and the page hosting it are.
What is the difference between alt text and a caption?
Alt text replaces the image for people who cannot see it: it describes what the image shows and stays invisible on screen. The caption is visible to everyone and complements the image with what it does not say on its own, such as a date, a location, a source or a credit. The two should not be identical, because a screen reader reads one and then the other.
Should every image have a caption?
No. Caption the images that carry information: proof photos, diagrams, charts, screenshots, photos of completed work. Decorative images and most photos in a product gallery can do without one. A pointless caption on every visual weighs the page down without helping the reader; a generic photo that calls for no caption at all is often an image worth replacing.
Can an image's title attribute serve as a caption?
No, an image's title attribute does not replace a caption. It only appears on mouse hover, so never on mobile, and screen readers do not render it reliably. For a caption, use a figcaption element placed inside a figure element that contains the image: the text is visible to everyone and explicitly tied to the image.
Resources
- Google Search Central: image SEO best practicesdevelopers.google.com
- MDN: the figure element and the figcaption elementdeveloper.mozilla.org
- W3C WAI: images tutorialw3.org
- WordPress: Image blockwordpress.org
- Shopify: image_tag filter referenceshopify.dev
Updated on
Topic checklist (PDF)