How to host and embed an image anywhere
Every platform handles images differently — different size caps, different hotlinking rules, different preview behaviour. These are tailored, copy-paste guides for the 25 destinations people actually paste images into.
The short version
Upload once and you get a permanent URL. Paste that URL wherever you need it — a README, a chat message, a CMS post, a newsletter. It keeps working after the original message is deleted, the repository is renamed, or the post is archived, because the image no longer lives inside any of those things. Pick your destination below for the exact snippet and the platform-specific gotchas.
AI agents
Give an agent a tool that turns a generated image into a permanent, hot-linkable URL.
AI agents (MCP)
Give Claude, Cursor, or any MCP client a tool to upload images and get a permanent URL. Connect by URL (zero install) or via npx. The image host for AI agents.
Code, docs & READMEs
Images that still load years later, in the places developers actually read.
GitHub README
Upload screenshots, diagrams, and GIFs and embed them in a GitHub README with a Markdown snippet. No account needed; the direct URL is permanent and globally cached.
Stack Overflow
Upload screenshots and diagrams to swiftimg and paste a Markdown image link into a Stack Overflow question or answer. Permanent URLs, no account required.
Docusaurus
Host Docusaurus screenshots and diagrams on swiftimg. Keeps the docs repo lean, gives you permanent URLs, and adds on-the-fly resize.
Obsidian
Host attachments on swiftimg and embed them in Obsidian notes with a Markdown image link. Keeps the vault small, makes the notes portable, and works across devices.
Chat & communities
Links that unfurl as previews and don't expire when the original message ages out.
Discord
Upload images and GIFs to swiftimg and paste a direct link in Discord. The link unfurls inline, and you skip Discord's per-message attachment limit.
Slack
Upload images and GIFs to swiftimg and paste the URL into Slack. The link unfurls with an inline preview, with no per-channel storage cap.
Telegram
Upload to swiftimg and share the link in a Telegram chat or channel for a permanent URL with inline preview.
Forums (BBCode)
Upload an image to swiftimg and embed it on any forum with BBCode, Markdown, or a plain image URL. Permanent direct URLs, no account required.
Social platforms
Correctly sized, correctly previewed, from one uploaded original.
Twitter / X
Host images on swiftimg and link them from a tweet or X post. The link previews inline via Twitter Card metadata, with no upload limit and a permanent URL.
Bluesky
Upload to swiftimg and link from a Bluesky post for an inline preview. Useful when you want a permanent URL or need to share more than four images.
Mastodon
Host images on swiftimg and link from a Mastodon toot. The URL renders as an OpenGraph card and stays live regardless of which instance you're on.
LinkedIn
Host images on swiftimg and embed them in LinkedIn articles via Markdown or as a link with an OG card. Permanent URL, globally cached, no expiry.
Reddit
Upload images and animated GIFs to swiftimg and post the direct URL on Reddit. The link unfurls inline and stays live even when the original is deleted.
Frameworks & static sites
Drop-in image URLs with on-the-fly resizing, no build-time processing step.
Next.js
Use swiftimg as the remote image source for next/image. Permanent URLs, automatic WebP, on-the-fly resize via the loader, and flat, predictable pricing.
SvelteKit
Reference swiftimg URLs from SvelteKit components and Markdown content. Permanent URLs, on-the-fly resize, and global delivery.
Vue / Nuxt
Configure @nuxt/image (or your own Vue component) to fetch from swiftimg. Permanent URLs, on-the-fly resize, and global delivery.
Astro
Reference swiftimg URLs from Astro's <Image /> component. Permanent URLs, automatic WebP variants, on-the-fly resize, and global delivery.
Hugo
Reference swiftimg URLs from Hugo templates and content. Permanent URLs, automatic WebP, and no Hugo image processing on every build.
Eleventy (11ty)
Reference swiftimg URLs from Eleventy templates and Markdown. Permanent URLs, automatic WebP, and no @11ty/eleventy-img runtime needed.
Static sites (Hugo, Jekyll, Eleventy)
Offload images from your static-site repo to swiftimg. Smaller repo, faster builds, automatic WebP variants, and on-the-fly resizing — no plugin required.
Publishing & newsletters
Hosted images for CMS posts and email, where inline attachments get stripped.
Notion
Host an image on swiftimg and embed it in Notion with the /embed block or as inline media. The URL is stable, globally cached, and doesn't expire with your workspace.
WordPress
Host WordPress media on swiftimg to cut origin load, serve automatic WebP, and get on-the-fly resizing without an enterprise CDN bill.
Ghost
Host Ghost post images on swiftimg. Stable URLs, automatic WebP, and on-the-fly resize — without configuring an S3 + CloudFront pipeline.
Email newsletters
Host newsletter images on swiftimg. Stable URLs, global delivery, automatic WebP, and no per-send overage — embed the same image across every send.
Frequently asked
Do I need an account to embed an image?
No. Anonymous uploads work in the browser and produce a permanent URL, subject to a cap. A free account raises that cap, keeps every upload in one library, and can create an API key for the REST API, the CLI and the MCP server — 100 uploads a month. On-the-fly transforms, signed URLs, a custom domain and far higher volume are the Developer plan, from $9/mo.
Will the URL still work in a year?
Yes — that is the point of these guides. Links do not expire and are not tied to the message, post, or repository you pasted them into.
Can I resize an image without re-uploading it?
Yes. Ask for a different width or format directly from the URL, and the original stays untouched.
Which guide should I start with?
Pick the destination you are pasting into. The steps differ per platform because the size caps, hotlinking rules, and preview behaviour differ per platform.
Try it free — no account needed
Upload and share in seconds, then upgrade for the API, transforms, and a custom domain.