Skip to content
All referenceLinks & Media

Markdown Clickable Image

How to make a clickable image in markdown by combining image and link syntax. Badge links, banner links, and logo links.

What is markdown clickable image?

Markdown has no dedicated syntax for clickable images, but you can achieve it by nesting image syntax inside link syntax: [![alt text](image-url)](link-url). The image becomes the visual element of the link. This technique is widely used for badges, logo links, and banner images.

Syntax

Clickable image

Nest the image syntax inside a link. The ! and image come first, wrapped in the link's [ ].

Result
Alt text

Badge link (shields.io)

Common pattern for README badges — image is the badge, link goes to the package page.

Result
npm version

Platform support

PlatformSupportedNotes
GitHubYes
GitLabYes
ObsidianYes
DiscordNoImages and links render separately
NotionYes
SlackNo

Common mistakes

Wrong
[image.png](https://example.com)
Right
[![alt](image.png)](https://example.com)

Missing the ! before the opening bracket. Without !, it renders as a regular text link, not an image link.

Tips for clickable image

1Always write descriptive alt text

Screen readers read the alt text aloud — "badge" tells users nothing. Write what the image shows: "npm version badge showing 1.0.0".

Frequently asked questions

Everything you need to know.

1

How do I make a clickable image in markdown?

Combine image and link syntax: [![alt](image-url)](link-url). The [![...](...)](/...) pattern nests the image inside the link.

Related elements

Try it in the editor

Paste your markdown and see clickable image rendered instantly with professional themes.