Image Placeholders In Web Design and Development

There you are. You’re building a website for a friend, and it’s coming along nicely. Except for the photos. Those are coming later. You could stop and make a bunch of gray rectangles in Photoshop, but I’d rather keep building the site.
That’s where an image placeholder comes in. Give a service a width and a height in the URL, and it gives you an image you can drop into an <img> tag. A plain block is great when you’re working out the layout. A real photo is better when you want to see how the crop looks or whether white text is still readable over it.
For a plain block: Placehold.co
If I just need to fill an 800-by-450 spot, Placehold.co is where I’d start. It gives you an SVG by default, with the dimensions printed on it. You can also set the background and text colors and give it a label. That helps when there are five perfectly good gray boxes on the page and I can’t remember what any of them is for.
<img src="https://placehold.co/800x450/eeeeee/333333?text=Hero+image"
width="800" height="450" alt="">
For a photo: Lorem Picsum
Lorem Picsum gives you a photograph at the size you ask for. Add a seed, which can be any short label, and you’ll get the same image back from that URL. That’s handy when you’re checking a layout on your phone and would rather be looking at the same photo you saw on your laptop.
<img src="https://picsum.photos/seed/trail-journal/800/450"
width="800" height="450" alt="">
For old links or a more detailed mockup: Placeholder.photo
The folks behind Placeholder.photo dropped me a note about the old examples in this post. Their service is a separate project, but its compatibility guide shows which old via.placeholder.com URLs can be moved over just by changing the hostname. That covers common sizes, colors, and custom text. I’d check a couple of URLs before doing a search-and-replace across a whole project. The public images carry a small watermark, so you won’t get a pixel-for-pixel replacement.
It also does gradients, patterns, and avatars. If I’m mocking up a team page and don’t have headshots yet, a set of distinct avatars would tell me more about the layout than the same gray square repeated six times. The generator gives you a URL to copy without creating an account.
What was here in 2018?
The original post had two favorites. The first was Placeholder.com, which I’d known as placehold.it. I liked that you could get a square, a rectangle, or text like “Best Placeholder Ever” just by changing the URL. The old via.placeholder.com endpoint went away for a while. Its current operator says it came back in October 2026, and the original 100-by-100 example and the custom-text example both returned images when I checked.
The other was PlaceIMG. It gave you an actual photo and let you pick a category like animals, nature, or tech. You could ask for grayscale or sepia, too. I thought that was pretty cool. It shut down in July 2023, so the old /400/350/tech/grayscale/ example is here for nostalgia, not for your next project.
One small thing before you ship
Give the image a width and height even if CSS will resize it. The browser can set aside the right amount of space before the picture loads. The examples above use empty alt text because those images are just filling space. When the real image adds something to the page, give it alt text that tells the reader what matters about it.
If all I need is a rectangle, I can also give a box a CSS aspect ratio and a background color. No image request at all. For a mockup, I’ll happily borrow an image from a URL. Before launch, I’d replace it with the real thing or use a local fallback I control.