Backblaze B2

Also known as: B2 Cloud Storage

On this page 8

Backblaze B2 (also sold as B2 Cloud Storage) is a public object storage service operated by Backblaze that stores unstructured data as objects inside buckets and exposes them through a native B2 API and an S3-compatible API. In cloud storage, it is best understood as a low-cost, single-tier alternative to Amazon S3, Azure Blob Storage and Google Cloud Storage for backups, media archives and application data.

The service grew out of the company’s consumer backup business and launched for general use in 2015. Its design choices, such as one storage class, flat per-terabyte pricing and generous free egress, make it a frequent target for teams that want predictable bills rather than the deep feature catalog of a hyperscale cloud.

How Backblaze B2 stores and protects data

Backblaze B2 stores every object in a bucket that belongs to one account and one region, and each object is identified by a file name and a unique file ID. Buckets are either private, requiring an authorized key for every read, or public, allowing anonymous downloads over HTTPS.

Durability comes from erasure coding across a Backblaze Vault, a group of 20 storage servers in one data center. Each file is split into 17 data shards and 3 parity shards using Reed-Solomon coding, so a file survives the loss of any three servers in the vault. Backblaze publishes a durability target of eleven nines (99.999999999 percent) per year, which is a modeled figure rather than a guarantee of zero loss.

Access is controlled with application keys that can be limited to a single bucket, a file name prefix, a set of capabilities such as read-only or write-only, and an expiration time. The master key should be reserved for administration, and scoped keys should be issued to every application and backup tool.

The following table summarizes the main building blocks of the service and the role each one plays.

ComponentWhat it isPractical role
BucketNamed container in one regionGroups objects and holds settings
File versionOne stored copy of a file nameEnables rollback after overwrite
Application keyCredential with scoped capabilitiesLimits blast radius of a leak
Lifecycle rulePrefix-based retention settingHides and deletes old versions
Object LockWrite-once retention controlBlocks deletion during a set period
Event notificationWebhook on object changesTriggers downstream processing
Core components of Backblaze B2

The native B2 API and the S3-compatible API

Backblaze B2 offers two programming interfaces to the same data. The original B2 Native API uses its own calls, such as b2_authorize_account and b2_upload_file, and requires a client to request an upload URL before sending data. The S3-compatible API, added in 2020, accepts standard S3 requests signed with Signature Version 4, so most existing S3 tools and SDKs work after changing the endpoint and credentials.

Compatibility is broad but not complete. Core operations such as PUT, GET, list, multipart upload, presigned URLs and Object Lock work, while some AWS-specific features, such as storage class transitions or fine-grained bucket policies in IAM syntax, are absent or behave differently. Testing the exact calls an application uses is the reliable way to confirm fit.

The table below compares the two interfaces on the points that usually decide which one to adopt.

AspectB2 Native APIS3-compatible API
AuthenticationAccount authorization tokenSignature Version 4 signing
Upload flowRequest upload URL, then uploadDirect PUT to bucket endpoint
Tool ecosystemBackblaze SDKs and CLIAWS SDKs, rclone, many backup tools
Large filesStart, upload parts, finishStandard multipart upload
Best fitNew code tuned for B2Migration of existing S3 workloads
Native API compared with the S3-compatible API

Large objects are uploaded in parts between 5 MB and 5 GB, with a maximum object size of 10 TB. Parallel part uploads are the main lever for throughput, because a single stream rarely saturates a fast connection.

Pricing model and egress economics

Backblaze B2 charges a flat monthly rate per terabyte stored, with no separate tiers for hot, cool or archive data. The published rate has changed over time and should always be confirmed on the current price list, but the structure is stable: storage is billed by the byte-hour, and there is no minimum storage duration for standard buckets.

Egress is where the model differs most from hyperscale providers. Downloads are free up to roughly three times the average monthly data stored, with a per-gigabyte fee above that allowance. Transfers to certain CDN and compute partners are also free, which makes B2 attractive as an origin behind a content delivery network.

This table contrasts the cost structure of Backblaze B2 with a typical hyperscale object store.

Cost elementBackblaze B2Typical hyperscale store
Storage classesOne hot tierSeveral tiers with different rates
Minimum durationNone for standard bucketsOften 30 to 180 days on cold tiers
Retrieval feesNoneCharged on cool and archive tiers
Egress to internetFree allowance, then per GBCharged per GB after small free tier
API call feesSome classes free, others lowCharged per thousand requests
Cost structure compared with a typical hyperscale object store

The absence of cold tiers cuts both ways. Data that is almost never read can be cheaper in an archive class elsewhere, but B2 avoids retrieval delays and early-deletion penalties, so restores are immediate and predictable.

Versioning, lifecycle rules and Object Lock

Backblaze B2 keeps every version of a file by default. Uploading a file with an existing name creates a new version, and deleting through the web interface usually hides the file rather than removing its data. This behavior protects against accidental overwrites, but it also means that storage grows silently unless lifecycle rules are set.

Lifecycle rules operate on a file name prefix and define how many days after upload a file becomes hidden and how many days after hiding it is deleted. A rule that keeps only the latest version is the most common setting for buckets fed by backup software that already manages its own retention.

Object Lock adds write-once, read-many protection compatible with the S3 Object Lock model. In compliance mode, no user, including the account owner, can delete a locked version before its retention date, which makes it a strong defense against ransomware that targets backups. Governance mode allows privileged users to override the lock.

Choosing Backblaze B2 for a workload

Backblaze B2 fits workloads where capacity and egress dominate the bill and where the application needs only core object storage features. It fits less well where data must sit beside a large set of managed compute, analytics and event services in the same provider.

The decision table below maps common situations to a recommendation.

SituationRecommendationReason
Off-site backup copyStrong fitLow storage cost and Object Lock
Media origin behind a CDNStrong fitFree egress to partner CDNs
Deep archive rarely readCompare carefullyArchive tiers elsewhere may be cheaper
Data lake for in-cloud analyticsUsually weak fitCompute sits in another provider
Strict data residency in the EUPossible fitUse an account in the EU region
When Backblaze B2 is a good choice

The region is fixed when the account is created, and buckets cannot move between regions. Teams with residency requirements should therefore choose the region deliberately and plan cross-region replication if they need a second geographic copy.

Limitations and common mistakes

  • Forgetting lifecycle rules leaves hidden versions accumulating and inflates the monthly bill.
  • Using the master key in applications turns one leaked credential into full account compromise.
  • Assuming full S3 parity causes failures when a tool relies on IAM policies or storage class headers.
  • Uploading large files in one stream wastes bandwidth; parallel multipart uploads are far faster.
  • Ignoring the egress allowance can surprise teams that serve heavy downloads without a partner CDN.

Stripped to the essentials

Backblaze B2 is a large, rented storage room on the internet. You put files in labeled boxes called buckets, and you can get them back at any time from anywhere. You pay mainly for how much you store, at a simple price per terabyte, and downloading your own files is free up to a generous limit.

Unlike some bigger providers, it does not sort your data into fast and slow shelves with different prices. Everything sits on the same shelf, so getting a file back is always quick and never carries a surprise fee.

Where it is applied

A regional accounting firm with about 40 TB of client records runs nightly backups to a storage appliance in its office. To meet the 3-2-1 backup rule, its IT administrator configures the backup software to copy each night’s data to a Backblaze B2 bucket through the S3-compatible API, using an application key limited to that single bucket.

The bucket uses Object Lock in compliance mode with a 30-day retention period and a lifecycle rule that deletes versions after 45 days. When ransomware later encrypts the office servers and the local appliance, the attackers cannot delete the locked copies. The firm restores its data from B2 within two days, paying only the normal storage cost, because the restore stays within the free egress allowance.