Free to read. Sign up to save your progress and take knowledge-check quizzes.

Sign up free
5 min read·Updated March 8, 2026

Backblaze B2

Backblaze logoBy Backblaze

Backblaze B2 is a low-cost S3-compatible cloud object storage service offering storage at $6/TB/month — roughly one-quarter the price of Amazon S3 Standard — with no egress fees when paired with Cloudflare, making it a popular choice for media storage, backups, and cost-sensitive developer applications.

Listen to this lesson

Free preview · first 0:30
0:00 / 0:30

Audio & video lessons are paid features

Plus unlocks audio streaming. Pro adds downloadable audio, video, certificates, and more.

Plus adds:
  • Audio streaming
  • Downloadable PDFs
  • All AI Playbooks
  • Personalized content
Pro also adds:
  • Certificates of completion
  • Audio MP3 downloads
  • Video lessonssoon
  • & More…soon

Watch this lesson

Video coming soon

Learning Objectives

  • Understand what Backblaze B2 is and how it differs from Amazon S3 and consumer storage
  • Identify B2's key features: S3-compatible API, no-egress partnerships, and pricing advantage
  • Evaluate when B2 is the right storage choice vs. S3, Dropbox, or Google Drive

What Is Backblaze B2?

Backblaze B2 is a cloud object storage service from Backblaze, a company founded in 2007 that originally focused on consumer and business backup software before launching B2 as a developer-facing object storage service in 2015. Backblaze's strategy has always been to offer enterprise-equivalent storage at a fraction of the price charged by AWS, Google Cloud, and Azure.

B2 is S3-compatible — meaning software written against Amazon S3's API can often be redirected to B2 with minimal code changes — at $6 per TB/month for storage, compared to roughly $23/TB on AWS S3 Standard. The most significant cost advantage is B2's partnership with Cloudflare through the Bandwidth Alliance, which eliminates egress (data transfer out) fees when B2 storage is used with Cloudflare CDN — a potentially enormous cost saving for high-traffic media applications.

Tip

Try Backblaze B2: backblaze.com/b2 — first 10GB free; $6/TB/month for storage; no egress fees when using Cloudflare (Bandwidth Alliance); $0.01/GB egress outside the Alliance

Pricing

Backblaze B2$6/TB/month
  • $0.01/GB
  • Free (Cloudflare, Fastly, others — Bandwidth Alliance)
Amazon S3 Standard$23/TB/month
  • $90/TB (first 10TB)
  • Reduced via AWS CloudFront (still charged)
Google Cloud Storage$20/TB/month
  • $85-120/TB
  • Reduced via Google CDN
Azure Blob Storage$18/TB/month
  • $87/TB
  • Reduced via Azure CDN
Cloudflare R2$15/TB/month
  • Free (always)
  • Free (Cloudflare network)

The math is significant: storing 1TB of media files for a year costs roughly $72 on B2 vs. $276 on S3 Standard. For a high-traffic site serving 10TB/month through Cloudflare, egress on S3 would cost $900/month vs. $0 on B2 through the Bandwidth Alliance.

Core Features

S3-Compatible API

B2 implements the Amazon S3 API, which means:

  • Drop-in replacement for S3 in many applications — change endpoint URL and credentials
  • Works with popular S3-compatible tools: rclone, Cyberduck, Transmit, AWS CLI (with config), S3cmd
  • Compatible with popular backup tools: Duplicati, Veeam, CloudBerry, and many others
  • Works with media management platforms: Backblaze is a preferred storage backend for many video hosting platforms

Bandwidth Alliance — Zero Egress with Cloudflare

The Bandwidth Alliance is an agreement between Backblaze and Cloudflare (plus other CDN providers including Fastly) to waive data transfer fees between their networks:

  • Store media files in B2; serve them through Cloudflare CDN → zero egress fees
  • Cloudflare caches files at 300+ edge locations globally; B2 stores the origin files
  • This combination provides a high-performance, low-cost media delivery stack
  • Works with Cloudflare R2 as an alternative (same CDN, but R2 has no egress fees on its own)

💡Key Concept

Why egress fees matter for AI applications: AI applications that store and serve model outputs — generated images, audio files, video — can accumulate enormous egress costs on traditional cloud providers. A service that generates and stores 100GB of AI-generated images per day would pay $9/day ($270/month) in S3 egress fees alone. On Backblaze B2 with Cloudflare, that cost drops to $0 in egress, plus $0.60/month in storage — a roughly 450x cost reduction for the transfer component.

Lifecycle Rules

B2 supports file lifecycle management:

  • Automatically delete files after a specified number of days (useful for temporary processing outputs)
  • Keep last N versions of a file (for versioned backups)
  • Hide or delete files older than a set duration

Event Notifications (B2 Event Notifications)

B2 can trigger webhooks when files are uploaded, overwritten, or deleted:

  • Notify a webhook URL when a new file lands in a bucket
  • Trigger downstream processing (resize images, run inference, index into a vector store)
  • Integrate with n8n, Zapier, or custom backend services

Backblaze Personal Backup

Separate from B2 (but from the same company): Backblaze Personal Backup is a consumer backup service at $99/year for unlimited computer backup — widely regarded as the best value in personal backup software. B2 is for developer/application storage; Personal Backup is for end-user device backup.

AI-Relevant Applications of B2

While B2 has no native AI features, it is commonly used in AI workflows:

  • Generated content storage: Store AI-generated images, videos, and audio files at low cost with Cloudflare serving
  • Training dataset archives: Store large datasets at B2's low rate; pull to compute when needed
  • Model artifact archival: Back up model weights and checkpoints cheaply
  • Media processing pipeline: Upload → B2 → trigger → process → store output → serve via Cloudflare CDN

Strengths

  • Price: Roughly 75% cheaper storage than AWS S3 Standard; often 100% cheaper egress via Bandwidth Alliance
  • S3 compatibility: Works with a large ecosystem of tools without custom SDK integration
  • Cloudflare synergy: The B2 + Cloudflare combination is one of the best price/performance media delivery stacks available
  • Simplicity: B2's console and pricing are simpler than AWS S3 — fewer storage classes, more transparent pricing
  • Reliable operator: Backblaze has been in operation since 2007 and publishes transparent hard drive reliability data — an unusually trustworthy company in cloud storage

Limitations & Considerations

  • Fewer features than S3: B2 lacks S3's advanced features — no S3 Select, limited lifecycle rule complexity, fewer regional availability zones
  • Single-region storage: B2 is not geo-redundant within a region by default (AWS S3 Standard stores data across multiple AZs)
  • Smaller partner ecosystem: Fewer native AWS-style integrations — not as deeply connected to compute, AI/ML, and analytics services
  • Not for complex enterprise workflows: Large AWS-heavy organizations will find more friction migrating to B2
  • Egress still costs outside Alliance: Serving data directly to users without a CDN partner costs $0.01/GB

Best Use Cases

TaskWhy B2
Media storage + Cloudflare CDN deliveryZero egress fees; large cost savings vs. S3
AI-generated content storageStore images/video/audio at 75% lower cost than S3
Long-term backup archivalCheap object storage with versioning and lifecycle rules
Developer projects on a budgetS3-compatible API at a fraction of AWS pricing
Video hosting platform backendsPreferred by many video platforms for cost-effective origin storage
Startup cost optimizationReduce cloud bills without re-architecting your S3-based code

When to choose alternatives:

  • Deep AWS ecosystem integration → Amazon S3
  • Zero egress fees without CDN setup → Cloudflare R2
  • Enterprise compliance and governance → Box or Amazon S3
  • Consumer cloud storage → Google Drive or Dropbox

Getting Started

  1. Create a free B2 account at backblaze.com — first 10GB free
  2. Create a bucket and application keys in the B2 console
  3. Configure rclone or Cyberduck to connect with your B2 bucket
  4. Set up Cloudflare with your B2 bucket as the origin to enable zero-egress delivery
  5. Use the S3-compatible endpoint (s3.us-west-004.backblazeb2.com) to connect existing S3-based code

Tip

The B2 + Cloudflare stack: If you are building an application that generates and serves media files (AI images, videos, audio), consider storing files in B2 and serving them through Cloudflare Workers or Cloudflare CDN. This configuration — often called the "Poor Man's S3 + CloudFront" — delivers comparable performance to AWS at a significantly lower cost. The B2 free tier (10GB) and Cloudflare's free CDN plan let you evaluate this architecture at zero cost.

Key Takeaways

  • Backblaze B2 is S3-compatible object storage at $6/TB/month — roughly 75% cheaper than Amazon S3 Standard
  • Zero egress fees when served through Cloudflare (Bandwidth Alliance) make B2 one of the most cost-effective media delivery stacks available
  • B2 is developer-focused — it lacks AI features but is widely used in AI workflows for storing generated content, training datasets, and model artifacts cheaply
  • The S3-compatible API means many existing AWS S3 applications can be redirected to B2 with minimal code changes
  • Best fit for budget-conscious developers, startups, and media platforms where storage and transfer costs are a significant line item

Save your progress & take the quiz

Sign up free to bookmark lessons, track which modules you've completed, and lock in what you learned with a quick knowledge-check quiz at the end of each lesson.

🧭Recommended for you