All guides

Alt Text for Posts That Are Images of Text

Published

Write descriptions for social cards, carousels, and link previews when the words are the picture, and keep a copyable version beside the file.

Steps

  1. Decide where the words already live. Read the caption, the article, and the image as three separate texts. Note any fact that exists only inside the picture.
  2. Write the description from those gaps. State the claim, the list, or the comparison a person would miss if the image failed to load. Skip template names and colors unless they change the meaning.
  3. Attach it where the platform keeps alt text. Use the image description on X, Alt.text on LinkedIn, Accessibility on Instagram, or og:image:alt on a page you control.
  4. Keep a selectable copy. Leave the Markdown, the table, or the command in the post or the linked doc so nobody has to transcribe the picture.

The picture is the paragraph

A photo of a bicycle can be described in a sentence because the bicycle is still a bicycle if you cannot read the caption. A card exported from Markdown is different. The heading, the bullets, and the table are the content. If that file is the only place those words appear, a description that says "graphic with text" deletes the post for anyone who does not see the pixels, and it also deletes it when the image is slow, blocked, or cropped down to a thumbnail that is no longer readable.

This is not a request to decorate every upload with a keyword sentence. It is a request to answer one question before you publish: if this file did not load, which sentences would disappear? Those sentences belong in the caption, in the article, or in the image description. Often they belong in two of those places, because the three fields are not shown to the same people at the same time.

The browser export makes a flat file. Links inside the card are drawn as underlined words. Nobody can select the heading from the PNG. Treat the image as a poster and the surrounding text as the document.

Caption, alt text, and the article do different jobs

The caption is what most sighted people read under the image. On a feed it can be a hook ("We shipped the export fix") while the card holds the three bullets that explain the fix. In that case the caption does not replace a description. Someone using a screen reader hears the hook and then the alt text. If the alt text is empty, or if the platform invents one, they never hear the bullets.

The article is the right home for anything long, copyable, or likely to change. A changelog, a command, and a wide table should stay in HTML or Markdown even when you also draw them. The image is a reading aid for the feed. The table guide makes the same split: the picture is for scanning, the source is for copying.

Alt text is the description attached to the file itself. It travels with the image when the surrounding post is not what the reader is looking at, which is common for a link preview and for a single slide in a carousel. Write it as prose. "Image of a Minimal template card about a launch" describes the production method. "Launch card: paste Markdown, pick a size, export PNG, JPEG, or WebP" describes the message.

Do not start with "image of" or "picture of" unless the fact that it is a picture matters. Do not stuff the description with platform names you hope a search box will index. The description is for a person.

What to include for the usual cards

Use the examples as a checklist of shapes, not as captions you must copy.

A launch card with a headline and three bullets needs the headline and the bullets if the post text does not already list them. Order them the way the card does. "We launched Markdown Image Generator. Steps shown: paste Markdown, pick a platform size, export PNG, JPEG, or WebP." That is enough. The green background is not part of the claim.

A quote card needs the quote and, if the card attributes it, the attribution. If you edited the sentence down to fit the square, alt text should use the same edited sentence you published, not the longer line from your notes. Mismatched versions are how a correction fails.

A checklist should keep the order. "Before publishing: check the platform size, preview on a phone width, keep code short, export the canvas size you chose, add alt text." Numbered steps stay numbered. If the set is split across slides, say which part this slide is: "Slide 2 of 3. Checks 4 and 5: export at the preset size, then add alt text." A later slide that only says "continued" is useless on its own, because carousels are not always entered from slide 1.

A table needs the comparison, not the word "table". Read it by row. "PNG for small text and rules, check file size. JPG for photo-heavy cards, check letter edges. WebP for a website asset, check that the pipeline accepts it." Column headers belong in the sentence when the reader would not know what the cells mean. The full pipe table still belongs in the post or the doc, because a description is a bad place to align numbers.

A code card should name the outcome and the language, then stop. "TypeScript helper imageName(slug, page) returns a file name like slug-page-1.png." People who need to paste the function need the code image only as a pointer. Put the fenced block in the post. A description field is easy to mis-hear and awkward to copy, and a long function will blow past what you want read aloud before the next image.

Where each platform stores the description

These are separate fields from the caption. Filling one does not fill the others.

On Instagram, open Accessibility while composing, or edit the post later and write the alt text there. Instagram's own help says automatic alt text comes from object recognition and that you can replace it, and that the description is read when someone uses a screen reader. Object recognition has nothing useful to say about a heading and a list. Replace the automatic text every time. Meta's Instagram media API documents alt_text as up to 1,000 characters for a still image, including an image inside a carousel, and says Reels and stories are not supported. The in-app help page does not publish a character cap. Write the point in the first sentence so a short field or a truncated reading still carries it. The steps are in Instagram's alt text help.

On LinkedIn, after the upload, use Alt.text under the image. LinkedIn's help says this is what members using a screen reader hear, that it is not shown to everyone else, and that LinkedIn may assign alt text when you do not. An automatic description of a text card is usually a guess. Open the field and replace it. The same help page covers images in the feed and images embedded in articles: Add alternative text to images.

On X, add the image description in the composer before you post. The post text and the description are different fields. If you attach several images, each one needs its own description. Do not assume the thread text is attached to slide 3.

For a link preview you control, og:image:alt describes the image and og:title names the page. Meta's sharing markup treats those as separate tags. If the card is a shortened title, the alt can match the title because that is what the picture says. If the card adds a result ("Build time dropped after the cache split" as a supporting line under a how-to title), put that result in the alt as well. The image URL, the width, and the height are a different problem, covered in refreshing Open Graph caches.

A short editing pass

Read the description out loud once, without looking at the file. If you cannot tell what the reader is supposed to learn, the description is about the design rather than the message. If you hear every adjective of the template and none of the bullets, rewrite it.

Then look at the caption. Delete duplication that does not help, and keep duplication that prevents a fact from living in only one place. A feed post that repeats three bullets in the caption and in alt text is slightly redundant for you and complete for everyone else. A feed post that repeats them nowhere except on the pixels is a poster with no script.

Finally, check the boring failures. Empty alt on a text card. Alt that still says what the automatic tool guessed. A carousel slide described as "part 2" with no restatement of the subject. A code image whose only text version is trapped in the PNG. Fix those before you argue about wording. The social size guide will not save a card that is readable as pixels and missing as text.

Frequently asked questions

Should alt text repeat the caption?
Repeat a fact when the caption does not already contain it. If the caption is a hook and the image holds the list, the description has to carry the list. If the caption already states every item, describe the role of the image in a sentence and do not paste the list a second time.
What do I do with Instagram's automatic description?
Replace it. Instagram can fill alt text with object recognition, which is a poor match for a card made of headings and bullets. The help page tells you to open Accessibility and write your own description before or after posting.
Is og:image:alt the same as the page title?
No. og:title is the link title. og:image:alt describes the preview image. Use the alt when the image adds a claim the title does not, and keep them aligned when the image is just the title set in type.
Can someone copy code from alt text?
Sometimes a screen reader will read it, but people cannot reliably copy a fenced snippet from a description field. Put the code in the post or on the linked page, and use alt text to say what the snippet does.

Try the tools