In short
The <canvas> element is a drawing surface: charts, maps, 3D viewers, configurators, games, Flutter applications. What is drawn there is just an image computed by JavaScript, with no text in the HTML. This check consists of finding every canvas that carries useful information (a figure, a name, an address, a feature, a conclusion) and making that information appear as HTML text next to it: caption, data table, list. The canvas remains the illustration; the HTML carries the content.
Why it matters
MDN sums it up: a canvas is just a bitmap and provides no information about the objects drawn on it; its content is not exposed to accessibility tools the way semantic HTML is. Crawlers do no better than screen readers:
- Google indexes the text of the rendered HTML. A figure drawn pixel by pixel in a canvas is not there. Google also specifies that Googlebot does not support WebGL: WebGL maps and 3D scenes may display nothing at all for it.
- AI crawlers read the HTML, most often without executing JavaScript. A canvas reaches them empty: the data can be neither understood nor cited.
- Screen readers announce nothing, or only a generic label.
The extreme case is an application drawn entirely in a canvas. Flutter's documentation acknowledges that Flutter web output does not match what search engines need to index content, and recommends HTML for static or document-like content.
HTML provides for fallback content placed between <canvas> and </canvas>. MDN describes it as intended for screen readers and crawlers, but Google does not document how it handles it. Visible text next to the canvas is the only safe solution.
What it improves
- Indexing Figures, names and features become text that Google can index and match to queries.
- Citations in AI answers Data in text form can be quoted and attributed; drawn, it is invisible. No practice guarantees a citation.
- Accessibility Compliance with the WCAG success criterion on non-text content, and content that screen reader users can read.
- Robustness The information remains available if JavaScript or WebGL fails, on an older device or for Googlebot.
- Rankings No direct effect; the effect comes through richer indexable content.
How to check
List the canvases on the page by pasting this code into the developer tools console:
console.table([...document.querySelectorAll('canvas')].map((canvas) => ({
id: canvas.id,
class: canvas.className,
size: `${canvas.width}x${canvas.height}`,
role: canvas.getAttribute('role'),
label: canvas.getAttribute('aria-label'),
fallback: canvas.textContent.trim().slice(0, 60),
})));
For each canvas, ask one question: does the information it shows also exist as text? Take a displayed value (a figure, a city name, a dimension) and look for it in the initial HTML:
curl -s https://example.com/rapport-2026/ | grep -c "18,900"
0 means the value only exists in the drawing. Also check the accessibility tree (developer tools, Accessibility pane of the Elements tab): a canvas with no name and no fallback content adds nothing to it.
Record the result:
| Page | Canvas | Information carried | As HTML text? | Action |
|---|---|---|---|---|
/rapport-2026/ |
Sales chart (Chart.js) | 6 monthly values, trend | No | Caption and data table |
/magasins/ |
WebGL map | 14 addresses | No | List of stores with links |
/produits/fauteuil-orme/ |
3D configurator | Colors, dimensions | Colors yes, dimensions no | Add the dimensions to the product page |
/ |
Hero animation | Slogan | No | HTML text animated with CSS |
How to implement
Before you start
The reference model: a figure in which the canvas is the illustration, with a caption that gives the conclusion and a table that gives the data.
<figure>
<canvas id="ventes" width="640" height="320" role="img"
aria-label="Monthly sales in the first half of 2026, rising from January to June"></canvas>
<figcaption>Monthly sales in the first half of 2026: from €12,400 in January to €18,900 in June.</figcaption>
<table>
<caption>Chart data</caption>
<thead>
<tr><th scope="col">Month</th><th scope="col">Sales</th></tr>
</thead>
<tbody>
<tr><td>January</td><td>€12,400</td></tr>
<tr><td>June</td><td>€18,900</td></tr>
</tbody>
</table>
</figure>
Rules:
- The text is generated from the same data as the drawing, on the server side, so that they never diverge.
role="img"andaria-labelgive the canvas a short name for screen readers. With this role, content placed inside the canvas is no longer exposed: put the table next to it, not inside it.- The table can be collapsed in a
<details>element if it clutters the page: it stays in the HTML. See make content accessible without user interaction (opens in a new tab). - A purely decorative canvas (animated background, effect) gets
role="presentation"and needs no alternative.
Charts
Chart.js always draws in a canvas and leaves accessibility up to you: its documentation recommends role="img" with aria-label, or useful fallback content, and describes the message “Your browser does not support the canvas element” as inaccessible. Add the caption and the table from the model above.
Apache ECharts draws in a canvas by default but offers an SVG renderer, whose text (axes, labels) consists of DOM nodes, and an option that generates a description of the whole data set:
const chart = echarts.init(document.getElementById('ventes'), null, { renderer: 'svg' });
chart.setOption({
aria: { show: true },
title: { text: 'Monthly sales 2026' },
xAxis: { type: 'category', data: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'] },
yAxis: { type: 'value' },
series: [{ type: 'line', data: [12400, 13100, 14800, 15600, 17200, 18900] }],
});
With modular imports, register the SVG renderer and the ARIA component with echarts.use(). The SVG is only created when JavaScript runs: keep the caption and the table in the initial HTML.
Interactive maps
Mapbox GL JS, MapLibre and vector maps render in WebGL, which Googlebot does not support. Publish the list of locations in HTML next to the map: name, address, opening hours, link to each location's page. For a local business, this information must also appear on the location's page and in its structured data.
3D viewers and configurators
Three.js and Babylon.js viewers and product configurators show options, colors and dimensions. Write them into the product page in HTML (list of options, table of dimensions, price per configuration if the price changes) and provide a static image of the product when WebGL is not available, using feature detection. See fix JS and hydration errors (opens in a new tab).
Drawn text and animations
A title, a slogan or a key figure drawn in a canvas for a visual effect can almost always be HTML text styled with CSS (web fonts, @keyframes, gradients) or an SVG with a <text> element. Keep the canvas for the background effect and place the text on top of it.
Flutter web
Flutter draws its interface with its graphics renderers. Its documentation intends it for applications (PWAs, single-page applications) and advises against it for text-rich sites. Split off the public site (home page, product pages, help, blog) in classic HTML, and keep Flutter for the application itself. To stay in Dart, Flutter's documentation mentions Jaspr, which produces a DOM-based site.
WordPress
Versions WordPress 6.4 and later (block editor).
Chart plugins often rely on Chart.js or an equivalent library. Under each chart, add a “Table” block with the data and a caption in the block. For store maps, keep the list of addresses in text blocks, not only in the map.
Shopify
Versions Online Store 2.0 themes, Shopify admin, November 2026.
Personalization or 3D visualization apps display their options in a canvas. Repeat colors, materials and dimensions in the product description or in metafields displayed by the theme, and check with curl that these values are in the product page's HTML.
Next.js
Versions Next.js 15 and 16 (App Router).
Render the caption and the table in a server component, and isolate the drawing in a client component:
// app/rapport-2026/page.tsx
import { SalesChart } from './sales-chart';
const formatEuro = new Intl.NumberFormat('fr-FR', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0 });
export default async function Page() {
const sales = await getMonthlySales(2026);
return (
<figure>
<SalesChart data={sales} />
<figcaption>Monthly sales 2026, from {formatEuro.format(sales[0].amount)} to {formatEuro.format(sales.at(-1).amount)}.</figcaption>
<table>
<thead><tr><th scope="col">Month</th><th scope="col">Sales</th></tr></thead>
<tbody>
{sales.map((row) => (
<tr key={row.month}><td>{row.month}</td><td>{formatEuro.format(row.amount)}</td></tr>
))}
</tbody>
</table>
</figure>
);
}
SalesChart carries 'use client' and draws the canvas; getMonthlySales is your data access function. The same split applies to Nuxt (table in the template, chart in <ClientOnly>) and to Astro (table in the page, chart in a client:visible island).
Laravel
Versions Laravel 11 to 13.
Render the table in Blade and pass the same data to the chart script:
<figure>
<canvas id="ventes" role="img" aria-label="Monthly sales {{ $year }}"></canvas>
<figcaption>Monthly sales {{ $year }}</figcaption>
<table>
@foreach($sales as $row)
<tr><td>{{ $row->month }}</td><td>{{ number_format($row->amount, 0, ',', ' ') }} €</td></tr>
@endforeach
</table>
</figure>
<script>
const sales = @json($sales);
</script>
Common mistakes
- Relying on
aria-labelfor SEO: it names the element for screen readers; Google does not document using it as page content. - Fallback content saying “Your browser does not support the canvas element”: it provides no information.
- Table placed inside a
role="img"canvas: it is no longer exposed to assistive technologies. - Table data typed in by hand: it diverges from the chart at the first update.
- Store map without a list of addresses: the locations only exist in a WebGL drawing.
- Brochure site built entirely in Flutter web or canvas: Flutter's own documentation advises against it for text content.
Frequently asked questions
Does Google read text displayed in a canvas?
No, nothing indicates that Google reads text drawn in a canvas: that text only exists as pixels, not in the rendered HTML it indexes. Google also specifies that Googlebot does not support WebGL, which many maps and 3D scenes use. Any important information displayed in a canvas must therefore also appear as HTML text next to it, in the form of a caption, a table or a list.
Is fallback content inside the canvas tag enough?
Fallback content placed between the canvas tags is useful but not enough on its own. MDN describes it as intended for screen readers and crawlers, but Google does not document how it handles it, and this content disappears from assistive technologies if the canvas carries role="img". The safe solution is visible text next to the canvas, generated from the same data as the drawing.
Should SVG be preferred to canvas for charts?
For a chart of ordinary size, SVG has an advantage: its text, axes and labels are DOM elements. Canvas remains preferable for very large numbers of points or heavy animations. In both cases, keep a caption and a data table in the initial HTML, because a chart generated by JavaScript escapes crawlers that do not execute it.
Can a Flutter web site rank well?
Flutter's documentation acknowledges that Flutter web output does not match what search engines need to index content, and advises against it for text-rich sites. It recommends separating the Flutter application from the landing, marketing and help pages, built in search-optimized HTML, or using Jaspr, which produces a DOM-based site.
Resources
- MDN: The canvas elementdeveloper.mozilla.org
- MDN: Basic usage of canvas, accessible contentdeveloper.mozilla.org
- Google Search Central: Fix Search-related JavaScript problemsdevelopers.google.com
- Chart.js: Accessibilitychartjs.org
- Apache ECharts: Canvas vs. SVG and ARIAecharts.apache.org
- Flutter: Web FAQdocs.flutter.dev
- W3C: Understanding Success Criterion 1.1.1 Non-text Contentw3.org
Updated on
Topic checklist (PDF)