Images in Markdown
Updated
A Markdown image looks like a link with an exclamation mark in front: . The picture itself is not in the text. The file only says where to find it, and that is why pictures so often go missing when a document moves.
- Syntax:
. - Keep the pictures in a folder next to the
.mdfile and link to them with a relative path. - In the editor, paste or drop a picture. Export .md then gives a
.zipwith the Markdown and animages/folder.
The syntax



[](https://example.com)
- Alt text goes in the square brackets. It describes the picture for screen readers and shows if the picture cannot load.
- The title is optional and goes in quotes after the address.
- Spaces in a path are written as
%20:my%20photo.png.
Where the picture can live
| Kind of address | Example | Good for |
|---|---|---|
| Relative path | images/bike.png | Repositories, static sites and note folders. Move the folder and the links still work |
| Web address | https://…/bike.png | Pictures hosted somewhere permanent. The picture disappears if that site removes it |
| Embedded (base64) | data:image/png;base64,… | One self-contained file. It makes the text very long, and many apps will not show it |
Setting the size
Standard Markdown has no way to set a picture's size. The usual workaround is HTML, on sites that allow it:
<img src="images/bike.png" alt="A red bicycle" width="300">
Obsidian has its own form, ![[bike.png|300]]. Neither is portable. RichMarkdown reads the HTML form, and the Obsidian form when the picture is in an opened .zip, but it does not keep the width, so the exported Markdown shows the picture at its natural size. If size matters, resize the image file itself.
Images in RichMarkdown
- Add a picture by pasting it, dropping it on the page, or using the image button in the toolbar.
- From Word: open the
.docxand its pictures come with it. Old EMF and WMF drawings cannot be shown by browsers; they are left out and the message says how many. - From a vault or Notion export: open a
.zipthat includes the pictures, and they are found by path or by file name. - Export: Export .md writes pictures held in the note as real files in an
images/folder and downloads a.zip. Pictures at web addresses stay as links.
Where the pictures go next
| Destination | What arrives |
|---|---|
| Download Word (.docx) | Pictures inside the Word file. One that cannot be read is counted in the message, and its alt text is kept |
| Save as PDF / print | Pictures on the page, kept in one piece |
| A shared link | Pictures in the note or at https addresses. A shared note can be up to 1 MB, pictures included |
| Cloud save | Pictures count toward the 1.9 MB of Pro cloud sync, so large ones fill it quickly |
Why a picture does not show
- The path is wrong. Paths are relative to the Markdown file, and capital letters matter on most servers:
Bike.PNGis notbike.png. - The picture stayed behind. You moved the
.mdfile without its folder of images. - The address has expired. Pictures copied out of Google Docs point at temporary addresses. Google Docs to Markdown explains what to do.
- The file is full of base64. Open the
.mdin RichMarkdown and export it to get small files and real images. - A local path.
C:\Users\me\bike.pngonly exists on your computer.
Related guides
FAQ
How do I add an image in Markdown?
Write an exclamation mark, the alt text in square brackets, and the address in round brackets, such as .
How do I change the size of an image in Markdown?
Standard Markdown cannot. Use an HTML img tag with a width where the site allows it, or resize the image file.
Why is my Markdown image not showing?
Usually the path is wrong, the capital letters do not match, or the image folder was not moved with the file.
Can a Markdown file contain the image itself?
Yes, as base64 text, but the file becomes very long and many apps do not show it. A folder of image files works better.
How do I get images out of a Word document as files?
Open the .docx in RichMarkdown and click Export .md. You get a .zip with the Markdown and an images folder.