Imgur alternatives you can host yourself on Cloudflare
If you want an image host you own, three catalog projects replace the upload-and-share-a-link part of Imgur on Cloudflare: CattoPic, CloudFlare ImgBed and roim-picx. All three store files in R2. None of them has Imgur's community gallery or voting, and Cloudsteading has not deployed any of them to production.
By Cloudsteading · Sources checked 2026-11-08 · Independent guide
Why host your own instead of Imgur
Imgur describes itself as a community-powered site where people share images, memes and GIFs and vote the best to the top, with a Gallery of the most popular posts (About Imgur, checked 8 November 2026). Its terms of service, effective 2 October 2026, limit use of the service to personal, non-commercial purposes and ask you not to use it to host image libraries you link to from elsewhere, content for your website, advertising or avatars.
If what you need is a place to upload an image and get a link you control, the three projects below do that on your own Cloudflare account. All three store image files in Cloudflare R2, so you pay Cloudflare directly (or nothing, inside the free allowances) and the files sit in your account.
Three Imgur alternatives that run on your own Cloudflare account
| Project | License | Best for | What it lacks next to Imgur |
|---|---|---|---|
| CattoPic | GPL-3.0 | A personal image host with tags, expiry, WebP and AVIF copies and an API | Community gallery and voting; no documented Imgur import |
| CloudFlare ImgBed | MIT | Image and file hosting with a management dashboard, many storage back ends and a REST API | Community gallery and voting; admin sign-in is open until you configure it |
| roim-picx | Apache-2.0 | Uploads, folders, albums and share links, with GitHub, Google or Steam sign-in | Community gallery and voting; English documentation (the README is in Chinese) |
Each project page shows the README, license and architecture at a pinned commit. The architecture diagrams describe the setup each project declares, not a test deployment.
CattoPic: the shortest documented setup
CattoPic describes itself as a self-hosted image host with upload, tags, WebP and AVIF variants, expiry and a public random-image API. Its 1.0.0 README says the admin interface and the API run on one Cloudflare Worker, with image files in R2.
Its wrangler.jsonc declares R2, D1, KV, a delete queue, the Images binding and an hourly cron. That is more Cloudflare services than the other two, so check each free allowance before assuming a small site fits: the Workers Free plan allows 100,000 requests a day and 10 ms of CPU per invocation, Queues on Workers Free allows 10,000 operations a day, and Images Free allows 5,000 unique transformations a month. The README advertises a 70 MB upload limit and says JPEG and PNG files above 20 MB skip the Images binding.
GPL-3.0 is a copyleft license: if you change the code and distribute it, you must share your changes under the same license. Read the GPL-3.0 explainer before building it into a product.
CloudFlare ImgBed: the most storage options
CloudFlare ImgBed calls itself an image and file hosting solution for Docker and serverless environments. Its README lists Telegram, Discord, Cloudflare R2, S3-compatible storage, Hugging Face and WebDAV as storage channels behind one management interface, with file management, authentication, content moderation and a REST API.
For Cloudflare Workers, the project's deploy script generates a Wrangler file from variables you supply: a D1 database or KV namespace for metadata, an optional R2 bucket for files, and an Images binding.
Set admin credentials first. In the source at the pinned commit, the admin area lets everyone in until an admin username or password is configured, and uploads are open until you set a user authentication code. Do not put passwords in the WORKER_VARS deployment variable either: the generator prints those variables to the build log and only hides names containing TOKEN, KEY or SECRET.
roim-picx: albums and sign-in, documented in Chinese
roim-picx lists batch upload, folders, rename, expiring files, albums with public or encrypted sharing, view statistics, and sign-in with GitHub, Google or Steam. It runs as Cloudflare Pages with Functions, R2 for files, D1 for metadata and KV for sessions.
Its README is written in Chinese. The deploy path it describes is: fork the repository, enable R2, create a Pages project from your fork, set environment variables such as BASE_URL and PICX_AUTH_TOKEN, bind R2 and KV to the Functions, build, then apply the D1 migrations with Wrangler. Hugging Face storage and NSFW detection are optional features that rely on outside services; leave them off unless you have checked those services.
Deploy CattoPic, step by step
These follow the README and deployment guide; Cloudsteading has not run them against a production Cloudflare account. You need Node.js 24 or later, pnpm and a Cloudflare account with an R2 subscription.
- Clone the repository and run
pnpm install. - Run
pnpm wrangler login. - Copy
wrangler.example.jsonctowrangler.jsonc. Create the D1 database, R2 bucket, KV namespace and delete queue it names in your own account, and put your own D1 and KV IDs in the file before running any remote command. The deployment guide lists the bindings. - Apply the database migrations:
pnpm wrangler d1 migrations apply CattoPic-D1 --remote. - Insert an API key of your own into the
api_keystable withpnpm wrangler d1 execute, using theINSERT OR IGNOREstatement in the README. - Run
pnpm run deploy, which builds with Vite and deploys with Wrangler. - Turn on public access for the R2 bucket, set
R2_PUBLIC_URLinwrangler.jsoncto the bucket's public address, and deploy again. - Open the Worker address (
cattopic-worker.<your-subdomain>.workers.devor a custom domain) and paste the API key into the interface. - Upload a test image through the interface.
- Check the public route with
curl -I "https://<your-worker>/api/random", which should answer with a redirect to an image.
The committed wrangler.jsonc holds the upstream author's own database, KV and public domain values, which is why step 3 starts from the example file.
Will it stay free?
R2's free tier is 10 GB-month of Standard storage, 1 million Class A and 10 million Class B operations a month, with free egress, per Cloudflare's R2 pricing, checked 8 November 2026. R2 needs an R2 subscription added through Cloudflare's checkout, and usage above the allowance is billed monthly. For a handful of personal images that is likely enough. Many public hotlinks, large uploads or heavy resizing can pass the Workers, D1 or Images limits first. Each project page lists the allowances its setup depends on.
Before you switch
- Save copies of your images from Imgur first. None of the three READMEs documents an Imgur import.
- Links you have already shared keep pointing at Imgur, so they will not move with your files.
- Decide who may upload. A public upload page can fill your R2 bucket and use up your allowances.
- Back up your D1 database and R2 bucket, and plan to update the project when it changes upstream.
Selected CattoPic workflows were tested locally with synthetic images; no production deployment or Imgur migration of any project here was verified. We read each README, configuration and license at the pinned commit linked on its project page. For what the catalog covers across image services, see the Cloudinary alternatives, the R2 image hosting list and the guide to self-hosting. If you maintain one of these projects and something here is wrong, you can ask for a correction or removal through support.
Common questions
What is a good free alternative to Imgur that I can host myself?
Three open-source projects in the catalog store images in your own Cloudflare R2 bucket: CattoPic (GPL-3.0), CloudFlare ImgBed (MIT) and roim-picx (Apache-2.0). Each can fit Cloudflare's free allowances for a small personal workload, but R2 needs an R2 subscription on your account and charges for usage beyond its allowance, so free is conditional, not guaranteed.
Can I use Imgur to host images for my website?
Imgur's terms of service, effective 2 October 2026, ask users not to use it to host image libraries linked from elsewhere, content for a website, advertising or avatars, and limit use of the service to personal, non-commercial purposes. A host you run yourself has no such rule.
Do these Imgur alternatives have a public gallery or community?
Not like Imgur's. Imgur describes itself as community powered, with a Gallery of popular posts and voting. The three projects here upload, organize and serve your own images and links. CloudFlare ImgBed's README shows a public gallery page, but that is a gallery of your own files, not a community.
Which one is the simplest to deploy?
CattoPic has the shortest documented path: one Cloudflare Worker serves the interface and the API, and its README deploys with a few Wrangler commands. roim-picx is deployed through the Cloudflare Pages dashboard with manual R2 and KV bindings and a D1 migration. CloudFlare ImgBed generates its Wrangler configuration from deployment variables, so it has more setup choices. Cloudsteading has not deployed any of these to production.
Is it really free to host images on Cloudflare R2?
R2's free tier covers 10 GB-month of Standard storage, 1 million Class A operations and 10 million Class B operations a month, with free egress, according to Cloudflare's R2 pricing page. You need an R2 subscription on your account, and usage above the allowance is billed monthly. Domains and optional third-party services cost extra.
Can I move my existing Imgur uploads over?
None of the three READMEs documents an Imgur import. Save copies of your images from Imgur and upload them again. Links you already shared keep pointing at Imgur.
Sources and review
- About Imgur ↗
- Imgur terms of service ↗
- CattoPic pinned README ↗
- CattoPic Wrangler configuration ↗
- CattoPic deployment guide ↗
- CloudFlare ImgBed pinned README ↗
- CloudFlare ImgBed Wrangler generator ↗
- CloudFlare ImgBed authentication source ↗
- roim-picx pinned README ↗
- Cloudflare R2 pricing ↗
- Cloudflare R2 get started ↗
- Cloudflare Workers pricing ↗
- Cloudflare Queues pricing ↗
- Cloudflare Images pricing ↗
Recommendations are Cloudsteading’s editorial assessment. Repository review establishes documented capabilities; it does not prove a fresh deployment or complete feature parity. Prices and platform limits can change.


