Lorem Picsum
All posts
Guide

Picsum Photos Alternatives When Picsum Photos Is Down

Picsum photos down or not working? Compare the best Picsum photos alternatives, including Lorem Picsum, with URL examples and a fallback plan.

If you landed here because Picsum Photos is down, you are not alone. Every few months developers search for "picsum photos down" or "picsum photos not working" after a build breaks, a Storybook page turns blank, or a demo site fills up with broken image icons. In the worst cases the browser shows a raw Cloudflare 500 error instead of a photo. This guide explains why that happens, how to confirm it, and which Picsum Photos alternatives are worth switching to, including Lorem Picsum, a random image generator built on CC0 photos.

Picsum Photos down: what the Cloudflare 500 error means

When picsum.photos fails, the symptom is usually a Cloudflare error page, most often an HTTP 500 or 5xx. The important detail is that Cloudflare is only the messenger. A 5xx tells you that the request could not be completed somewhere along the server or network path. Compare a public test URL with the failing request and check from another network before treating the incident as a general outage.

A free placeholder service is a single point of failure for anything that hotlinks it. If Picsum Photos is down, every page that points an <img> at it loses its images at the same moment. That is why a short outage feels much bigger than it is: unit tests, visual regression suites, screenshots, and staging sites all fail together.

Picsum Photos not working: a quick checklist

Before you replace anything, rule out problems on your side. When Picsum Photos is not working, work through this list:

  1. Open the image URL directly in a browser tab. If it loads there but not in your app, the problem is your CSP, ad blocker, or a mixed-content rule.
  2. Run curl -I https://picsum.photos/200/300. Follow redirects and check for a final 200 with an image content type. Repeated 5xx responses from multiple networks point to a provider-side problem.
  3. Check for rate limiting or blocked requests. CI runners and shared office IPs can trigger bot protection, which looks like Picsum Photos not working even though it is fine for everyone else.
  4. Test a different path. If /id/237/200/300 works but /200/300 does not, the random endpoint is the failing piece.
  5. Look at the response headers. A cf-ray header with a 5xx status helps provider support identify the failing request.

If the checklist points to an outage, you have two choices: wait, or stop depending on a single host. The second choice is permanent, so the rest of this guide focuses on it.

Why people look for Picsum Photos alternatives

Outages are the loudest reason, but not the only one. Developers search for Picsum Photos alternatives for several practical reasons:

  • Reliability. A fallback host means one provider failing does not break your tests.
  • Subject control. Pure random photos are not enough when a mock-up needs a coffee shop, a forest, or a city street.
  • Search. Picking a specific photo by keyword is faster than browsing a gallery by numeric ID.
  • Licensing clarity. Teams want to know every image is free to use in a commercial prototype.
  • Extra options. Presets, WebP output, grayscale, and blur are common requests.

The best Picsum Photos alternatives

1. Lorem Picsum (picsum.org)

Lorem Picsum is the closest drop-in replacement, because the URL shape is deliberately familiar. It serves real CC0 photographs, so you can use them anywhere without attribution, and it works as a random image generator for placeholders, mock-ups, and test data.

<!-- Random photo at a free preset size -->
<img src="https://picsum.org/800/600" width="800" height="600" alt="Random placeholder photo" />

<!-- Same photo on every reload, chosen by a seed -->
<img src="https://picsum.org/seed/hero/1200/800" width="1200" height="800" alt="Hero placeholder" />

<!-- A subject instead of pure randomness -->
<img src="https://picsum.org/seed/coffee/800/600" width="800" height="600" alt="Coffee placeholder" />

What makes it a strong choice among Picsum Photos alternatives:

  • Searchable catalog. The library holds 100,000 CC0 photos you can search by subject, not just browse by number.
  • Seeds that mean something. A seed such as cat or forest is matched against photo tags, so the image is both repeatable and relevant.
  • Free presets. Common sizes such as 800x600, 640x640, 1200x800, 600x800, 1280x720, and 1920x1080 work without an API key or sign-in, in JPEG or WebP.
  • Effects. Grayscale and blur are available through query parameters.
  • Category and tag filters. Add ?category=city or ?tag=dog to narrow a random pick.
  • MCP tools. An MCP server lets AI coding agents search photos and build image URLs directly.

Custom dimensions up to 2,000 pixels per side, grayscale, and blur also work without a key or credits. Open the generated file to confirm its format and dimensions. Photo IDs from one catalog do not identify the same image in another catalog.

2. Unsplash Source and the Unsplash API

Unsplash offers high-quality photography under its own license. The legacy source URLs have been unreliable over time, so most projects now use the official API, which needs an access key and has rate limits. It is the right choice when image quality matters more than convenience.

Picsum Photos alternatives compared

Option Real photos Search by subject No API key Best for
Lorem Picsum Yes (CC0) Yes Yes Drop-in random image URLs
Unsplash API Yes Yes No High-quality hero images

How to migrate from Picsum Photos in minutes

Switching is mostly a find and replace. Because the path format is similar, a typical migration touches a single constant.

Step 1: centralize the host. Stop hardcoding the domain in components.

const PLACEHOLDER_HOST = 'https://picsum.org';

export function placeholder(width: number, height: number, seed?: string) {
  return seed
    ? `${PLACEHOLDER_HOST}/seed/${seed}/${width}/${height}`
    : `${PLACEHOLDER_HOST}/${width}/${height}`;
}

Step 2: prefer a preset size. Using a free preset such as 800x600 avoids any credit use and keeps URLs cacheable.

Step 3: add a seed wherever the image must not change. Tests, screenshots, and Storybook stories should always use a seed so the photo is identical on every run. This also prevents visual regression noise.

Step 4: add an onerror fallback. A last line of defense means a dead image host never leaves a broken icon on screen.

<img
  src="https://picsum.org/seed/card/800/600"
  width="800"
  height="600"
  alt="Card placeholder"
  onerror="this.onerror=null;this.src='/images/placeholder-800x600.jpg'"
/>

Build a resilient placeholder strategy

Even the best of the Picsum Photos alternatives can fail someday, so design for it:

  • Use two hosts. Point to a primary service and fall back to a second one when an image errors.
  • Cache in CI. Download the images your tests need once and reuse them, so a remote outage cannot fail a build.
  • Set explicit width and height. Layout stays stable even when an image fails.
  • Always write real alt text. It is better for accessibility and it gives users context if the picture does not load.
  • Keep a local default. One small bundled placeholder image costs almost nothing and removes the dependency entirely for emergencies.

Frequently asked questions

Why is Picsum Photos down for me but fine for others?

Regional Cloudflare routing, a blocked IP range, or a corporate proxy can make Picsum Photos not working for you while it responds normally elsewhere. Test from a different network and compare curl -I output to separate a local problem from an outage.

Is a Cloudflare 500 error my fault?

The status is a starting point. Compare a direct image GET from two networks and check the browser console for local restrictions. If both networks repeatedly get 5xx responses, serve a local fallback while the provider investigates.

Which Picsum Photos alternative is the easiest to switch to?

Lorem Picsum, because the path-based URLs follow the same idea: width, height, and an optional seed. In most projects you change a single host constant.

Is Lorem Picsum free?

Yes. The public photo generator and image URL API work without signing in or providing an API key. You can choose presets or custom dimensions up to 2,000 pixels per side and use grayscale or blur for free.

Are the photos safe for commercial use?

The Lorem Picsum catalog is made of CC0 photographs, which means you can use them in commercial projects without attribution. Always check the license of any other provider you add to your fallback chain.

Can I get the same random image every time?

Yes. Use a seed URL such as /seed/hero/1200/800. A seed gives you a repeatable selection from the current catalog. For tests and screenshots that must stay identical, save the fixture locally.

What should I do when Picsum Photos is down in production?

Replace placeholder images in production with real assets whenever possible. If you still depend on a placeholder host, add an onerror fallback and a second provider so a short outage stays invisible to visitors.

Final thoughts

An outage where Picsum Photos is down or not working is annoying, but it is also useful feedback: any single hotlinked host is a risk. Pick one of the Picsum Photos alternatives above, centralize the URL, use seeds for repeatable output, and keep a local fallback image. For most teams, Lorem Picsum is the quickest way to get random, CC0, subject-aware photos back on the page in about five minutes.

Ready to try it? Open Lorem Picsum to search the catalog, copy an image URL, and drop it into your project.