Skip to content
Image

An image embeds a graphic into the document. The syntax mirrors the link syntax with a leading ! — the text in square brackets becomes the alternative text (shown when the image cannot load and read aloud by screen readers), and the URL in parentheses points to the image file.

Syntax
MARKDOWN
![A golden retriever puppy sitting on grass](puppy.jpg "Sunrise on a misty morning")

![Docizr Site Logo](icon-plus-wordmark.svg "Great logo!")
Output
A golden retriever puppy sitting on grass
Sunrise on a misty morning

Docizr Site Logo

Best Practice
  • Always write meaningful alternative text — it is read aloud by screen readers and displayed when the image fails to load.
  • Keep alt text descriptive but concise: describe what the image shows, not what it means to you.
  • Use an optional title (in quotes after the URL) for supplementary context that does not belong in the alt text.

Tip

You can use HTML to add an image with height and width parameters. If you want to use the Markdown syntax then prepare images that are landscape in a widescreen ratio because Markdown will always make the image fit the full width. The puppy image on this page is 32:9 ratio.

Notes

Alt Text

Alt text is not a caption — it is a text replacement for the image. Good alt text describes what a sighted reader would see:

Syntax
MARKDOWN
![A winding coastal path with views of the sea in the distance](coastal-path.jpg)
Output

A winding coastal path with views of the sea in the distance

A caption visible to all readers is typically added as a separate paragraph below the image, or using a custom component if your platform supports one.


Linked Images

To make an image a clickable link, wrap the image syntax inside a standard link:

Syntax
MARKDOWN
[![A photograph of the guesthouse garden](garden-thumb.jpg)](garden-full.jpg)
Output

A photograph of the guesthouse garden


Reference-Style Images

Images support the same reference-style form as links:

Syntax
MARKDOWN
![A sunset over the valley][sunset]

[sunset]: sunset.jpg "Sunset photograph"
Output

A sunset over the valley

Markdown Flavour Support

Supported by all major flavours.

Flavour Support Detail
Flavour Support Notes
Original Markdown Yes Defined in the original spec; inline and reference-style both supported.
CommonMark Yes Fully specified.
GitHub Flavored Markdown Yes Inline images fully supported; image dimensions cannot be set in Markdown alone.
Pandoc Markdown Yes Supports image attributes (width, height, class) via extended syntax.

Practical Examples

  • Adding a photo to a travel blog post: Embed an image mid-post with alt text that describes the scene for readers who cannot see it.
Syntax
MARKDOWN
We arrived just before sunset.

![The harbour at Portree lit by the last light of day](portree-harbour.jpg)

The colours were unlike anything we had seen before.
Output

We arrived just before sunset.

The harbour at Portree lit by the last light of day

The colours were unlike anything we had seen before.

  • Illustrating a step in a craft tutorial: An image placed between steps shows readers exactly what their work should look like at that stage.
Syntax
MARKDOWN
2. Fold the top edge down to the centre crease.

![Paper folded with the top edge meeting the centre line](fold-step-2.jpg)

3. Turn the paper over and repeat on the other side.

![Paper turned over with the bottom edge meeting the centre line](fold-step-3.jpg)
Output
  1. Fold the top edge down to the centre crease.

Paper folded with the top edge meeting the centre line

  1. Turn the paper over and repeat on the other side.

Paper turned over with the bottom edge meeting the centre line

© 2026 Docizr. All rights reserved.