Two Images Side by Side in Markdown: Layout and Export
Place two real images in a Markdown table, understand why equal columns are not guaranteed, and use a stacked layout when space is tight.
On this page
01Use a table for the comparison02Match the sources before forcing the layoutA before-and-after comparison needs two images readers can compare without guessing which is which. Open the Markdown converter to build one shareable comparison image. Start with matched source images and clear labels; Markdown alone does not provide a portable instruction meaning “each image is exactly half the available width.”
The example uses two actual demonstration assets: a draft checklist and its reviewed version. They have the same source width. A two-column GFM table keeps the labels above the corresponding images, with centred alignment for both cells.
# Before and after review
| Before | After |
|:--:|:--:|
|  |  |
Both images use the same source width.
This is the rendered comparison, not a marketing cover. Use it in a review note where the reader needs to compare the two states together. The labels and image descriptions identify the roles without relying only on colour.
Tables are a GFM extension. The alignment row sets cell alignment; it does not guarantee two equal-width columns. Image dimensions, content, and the renderer's styling still affect the layout. Check the preview in your intended renderer before exporting.
Crop the images to comparable regions and keep their proportions consistent. If one screenshot includes a large empty margin while the other is tightly cropped, equal columns will not make the subjects look equally sized. Preserve any detail needed for a fair comparison rather than trimming it just for symmetry.
Use reachable image addresses and check that both images have loaded before export. An authenticated dashboard URL may work in your own browser without being available to the renderer. Publish only images you are allowed to share, and remove private data from the source assets first.
A paired PNG is one fixed composition. When displayed in a narrow column, both images shrink together; it cannot turn into two stacked images. Inspect it at the smallest placement you expect to use. If either checklist becomes unreadable, publish a stacked version or link to the originals instead of squeezing the text further.
Here is a source-level stacked alternative using the same assets:
## Before

## After

A live Markdown table may wrap or overflow according to its renderer; do not assume it behaves like a responsive gallery. If a publishing system allows HTML and CSS, those can provide more layout control, but their support and filtering are specific to that system. Keep a plain Markdown fallback.
Leave enough room for both labels and check that the bottom edges are not cropped in the downloaded file. Describe the meaningful difference in the surrounding text, and provide original image links when readers need to inspect fine details. The comparison is a visual aid, not a replacement for the explanation.
Build your two-image comparison. Continue with image practices for Markdown or the guide to readable Markdown tables.