How to embed a screenshot in Markdown, HTML or a forum
Upload the screenshot to get an image link, then wrap that link in the right code: !description for Markdown, an img tag for HTML, or [img]link[/img] for BBCode forums. ShotBox gives you all three embed codes ready to copy.
An embedded screenshot is just a piece of code that points to an image stored somewhere else. So the job has two parts: get the image online, then paste the correct code into your page, README or post.
The three code formats
Pick the one that matches where you are writing.
- Markdown (GitHub, many wikis, notes apps): !what the screenshot shows
- HTML (websites, email templates): <img src="https://example.com/image.png" alt="what the screenshot shows">
- BBCode (many classic forums): [img]https://example.com/image.png[/img]
Always write a short description in the alt text. It helps screen reader users and shows up if the image fails to load.
Embedding with ShotBox
ShotBox is a free web tool that runs in your browser, so there is nothing to install. It creates the embed code for you.
- Take a screenshot with your system shortcut (Win+Shift+S on Windows, Cmd+Shift+4 on a Mac). ShotBox cannot capture with a desktop hotkey, so this step happens outside the site.
- Open shots.fullstackpartner.com and press Ctrl+V to paste. You can also drag and drop a file, pick a file, or capture the screen from the browser on desktop.
- Use the editor if needed: crop, arrow, box, pen, highlighter, text or pixelate blur.
- Upload. You get a long random private link that is not listed and not indexed, and it is copied automatically.
- Choose the embed code you need (Markdown, HTML or BBCode) and paste it into your document or post.
On a phone, you can use the share sheet. On Android, once ShotBox is installed as an app, you can share images straight to it.
Before you embed: clean the image
A screenshot often shows more than you intend. Crop to the relevant area so readers are not hunting for the point. Use an arrow or box to show where to look.
Hide private details with the pixelate blur: email addresses, names, tokens, account numbers. Drawing a box over text is not the same as blurring it, so check the result before you upload. ShotBox also removes camera and GPS (EXIF) data from every image, which matters for photos taken on a phone.
Think about how long the image must live
An embedded image only works while the link works. If you set an expiry of 1 hour, 1 day, 7 days or 30 days, or delete the link, the image disappears from every page that uses it.
That is useful for a quick bug report or a support thread. It is a bad idea for documentation, a README or a blog post that should last. For those, either leave the link without an expiry or store the image file inside your own project and reference it by relative path.
Other built-in and extra options
Some platforms let you skip hosting altogether:
- GitHub and many forums accept a pasted or dragged image in the editor and create the code for you.
- Static sites and Markdown projects usually work best with the image saved in an images folder next to the file, then referenced with !alt.
- Image hosts such as Imgur or Postimages give you a link too. Postimages can set uploads to expire. Imgur is ad supported.
If you need a screenshot of a whole long page, ShotBox cannot do scrolling capture. A browser extension such as GoFullPage (Chrome, Edge) or FireShot, or the built-in capture in Firefox and Edge, can do it. Then bring the finished image into ShotBox for blur, arrows and a link.
Quick troubleshooting
- Image shows as a broken icon: the link may have expired or been deleted, or the code has a typo. Check the brackets and quotes.
- Forum shows the code as text: that forum may not allow images, or it uses a different format. Try BBCode or the forum's own upload button.
- Image is too large on the page: in HTML, add a width attribute, for example width="600".
Frequently asked questions
How do I add a screenshot to a Markdown file?
Upload the image to get a link, then write !description where you want it. ShotBox can copy the Markdown code for you after upload.
Can I embed a ShotBox screenshot in a forum post?
Yes. ShotBox offers a BBCode embed code, which works on forums that support the [img] tag. If a forum does not allow outside images, use its own upload button.
Why did my embedded screenshot stop showing?
The link probably expired or was deleted. ShotBox links can expire after 1 hour, 1 day, 7 days or 30 days, or be deleted at any time, so avoid expiry for long lived pages.
Is the image link public?
The link is long, random and private. It is not listed and not indexed, but anyone who has the link can open it, so share it with care.
Does ShotBox take full page scrolling screenshots?
No. Use a browser extension or a built-in browser capture for that, then edit and upload the result with ShotBox.