TL;DR
Placebear is a free placeholder image service that returns high-quality bear photos at custom dimensions. Simply specify width and height in the URL, and the service serves a real bear photograph cropped to those exact dimensions. It is a fun alternative to traditional placeholder services like placeholder.com or picsum.photos, perfect for web development mockups, UI prototypes, responsive layout testing, and any project that needs wildlife imagery as placeholders. The service offers sizes from 100x100 to 1920x1080.
Quick start: https://placebear.com/800/600
No API key needed — just make a request!
How to Use This API
1. Basic Size (Width x Height)
https://placebear.com/800/600
2. Square Image
https://placebear.com/300/300
3. Wide Banner / Hero Image
https://placebear.com/1920/480
4. Small Thumbnail
https://placebear.com/150/150
5. Portrait / Vertical
https://placebear.com/400/600
6. Response Format
Placebear returns JPEG images (image/jpeg) of real bear photographs. The service crops a high-quality bear photo to fill your requested dimensions. Each request randomly selects from a library of bear photos, so repeated calls to the same URL may return different images.
7. HTML — Responsive Image
<img src="https://placebear.com/1200/800"
alt="Bear placeholder"
class="responsive-img"
style="max-width: 100%; height: auto;">
8. HTML — Gallery Grid with Different Sizes
<div class="gallery">
<img src="https://placebear.com/400/300" alt="Bear 1">
<img src="https://placebear.com/400/400" alt="Bear 2">
<img src="https://placebear.com/400/500" alt="Bear 3">
<img src="https://placebear.com/400/300" alt="Bear 4">
</div>
9. CSS Background Image
.hero-banner {
background-image: url('https://placebear.com/1920/1080');
background-size: cover;
background-position: center;
width: 100%;
height: 500px;
}
.card-thumbnail {
background-image: url('https://placebear.com/400/300');
background-size: cover;
border-radius: 8px;
aspect-ratio: 4 / 3;
}
10. JavaScript — Swap Placeholder on Error
const images = document.querySelectorAll('img[data-src]');
images.forEach(img => {
img.src = img.dataset.src;
img.onerror = () => {
// Fallback to placebear if image fails
img.src = 'https://placebear.com/400/300';
img.alt = 'Placeholder bear';
};
});
https://placebear.com/800/600
Frequently Asked Questions
- What image sizes are supported?
- Any dimensions from 100x100 up to 1920x1080. Common sizes include 800x600 (standard), 300x300 (avatar), 1920x1080 (banner), 400x300 (card), and 150x150 (thumbnail). The image is cropped to fit your specified dimensions.
- Are the bear photographs free to use?
- Yes, the bear photographs used by Placebear are free for any use, including commercial projects, web mockups, and client presentations. They are sourced from free-to-use photo collections.
- Can I request a specific image or specific species of bear?
- No, images are served randomly from the available library. Each request may return a different bear photo (different species, pose, environment) at the requested size. This adds variety to placeholders.
- What format are the images returned in?
- Images are served as JPEG format with good compression for web use. There is no option to change the output format at this time.
- Is Placebear still actively maintained?
- Placebear has been running for many years as a simple, reliable service. While it may not see frequent updates, it remains stable for its core use case of bear-themed placeholder images.
- What alternatives are available if Placebear goes down?
- Alternatives include picsum.photos (curated photos), placekitten.com (kitten theme), or using DiceBear for SVG placeholders. You can also use
https://placebear.com/400/300in your fallback chain.
What You Can Build
- UI mockups with realistic, high-quality image placeholders for client demos
- Responsive layout testing with different image aspect ratios and breakpoints
- Demo websites and prototypes that look polished with real photography
- Nature-themed blog or website that uses bear imagery as featured images
- Card grid layout demos for portfolio projects and UI component libraries
- Image gallery showcases with varied sizes to test masonry/waterfall layouts