GCP Storage Classes: Standard, Nearline, Coldline, and Archive Explained

Google Cloud Storage gives you four storage classes: Standard, Nearline, Coldline, and Archive. Each is designed for a different access pattern. Choosing the right class is one of the most direct ways to cut your Cloud Storage bill without changing anything else about how your application works.

The core trade-off is simple: the less you expect to access data, the cheaper it is to store but the more expensive it is to retrieve. If you are new to Cloud Storage, start with the Cloud Storage Overview. This page focuses on storage class selection, cost trade-offs, and the practical decision-making behind each tier.

The core idea

All four storage classes use the same underlying infrastructure. The only difference is economic. Storage price decreases from Standard down to Archive. Retrieval price increases from Standard (free) up to Archive (highest). Minimum storage duration also increases: delete an object early and you still pay for the full minimum period.

Analogy

Think of a gym with four locker options. Standard is a locker right by the entrance — you pay a premium, but your gear is always within reach. Nearline is a locker one floor up: cheaper rent, a short walk when you need something. Coldline is a storage cage in the basement: much cheaper, but you only go down there occasionally. Archive is off-site storage across town: the cheapest option by far, but every trip costs time and a fee. Choosing the wrong option means either paying for convenience you never use, or paying a retrieval fee every time you need your gear.

What stays the same across all four classes: data durability, availability SLAs, API compatibility, and the fact that all objects are accessible immediately with no restore step required.

Archive is not a tape archive

The most common beginner mistake is assuming Archive works like AWS Glacier and requires a restore step before you can read data. It does not. Archive objects are available via HTTPS the moment you request them. The cost is purely financial: storing is cheap, retrieving is expensive, and early deletion is penalised for 365 days.

How storage classes work

Every bucket has a default storage class. When you upload an object without specifying a class, it inherits the bucket default. You can override this per-object at upload time if you want different objects in the same bucket stored at different tiers.

You can change an existing object’s storage class at any time by rewriting it. Changing the bucket’s default does not retroactively update existing objects — it only applies to new uploads made after the change.

For large-scale transitions, use Object Lifecycle Management rules. These automatically move objects to cheaper classes as they age — for example, transitioning log files to Nearline after 30 days and Coldline after 90 days — without any manual rewrites.

The four cost dimensions to understand before choosing a class:

  • Storage price: what you pay per GB per month to keep the data.
  • Retrieval fee: a per-GB charge every time you read data out of Nearline, Coldline, or Archive. Standard has no retrieval fee.
  • Minimum storage duration: if you delete or transition an object before this period elapses, you are charged for the remainder. Standard has no minimum.
  • Class A operations: rewriting an object to change its class counts as a Class A operation, which carries a small per-operation cost.
Early deletion fees catch beginners off guard

If you move an object to Nearline and delete it after 15 days, you are still charged for the full 30-day minimum. The same applies when a lifecycle rule transitions an object — the clock restarts at the new class. Model minimum durations before transitioning objects, or the savings can disappear entirely.

Quick decision guide

  • Use Standard if you access data more than once a month, serve it directly to users, or process it with compute workloads. No retrieval fee, no minimum duration.
  • Use Nearline if you access data roughly once a month or less: backups you might restore, monthly report archives, log files you occasionally query. 30-day minimum.
  • Use Coldline if you access data at most once a quarter: disaster recovery snapshots, quarterly audit exports, historical datasets you rarely query. 90-day minimum.
  • Use Archive if you access data less than once a year: compliance records, legal archives, financial logs retained for 7 or more years. 365-day minimum with the highest retrieval fee.
When you are not sure, go one tier warmer

Default to one tier warmer than you think you need. A single unexpected retrieval on Archive or Coldline can cost more than months of savings from the lower storage rate. Nearline is rarely the wrong choice for backup data — and you can always transition colder with a lifecycle rule once your access patterns are confirmed.

Storage classes at a glance

Exact prices vary by region and change over time. Always check the official Cloud Storage pricing page for current numbers. The structural differences below are stable.

ClassBest forTypical accessMin. durationRetrieval feeMain trade-off
StandardActive data, web assets, pipelinesDaily or moreNoneNoneHighest monthly storage price
NearlineBackups, monthly reports, occasional logsOnce a month or less30 daysPer GB (low)Retrieval fee if accessed more than expected
ColdlineDR snapshots, quarterly audits, historical dataOnce a quarter or less90 daysPer GB (medium)Higher retrieval cost and early deletion penalty
ArchiveCompliance records, legal archives, long-term logsLess than once a year365 daysPer GB (highest)Very high retrieval cost if accessed unexpectedly

Standard vs Nearline vs Coldline vs Archive

Choosing a class is not just about picking a definition that sounds right. It is about predicting access frequency accurately, knowing your retrieval tolerance, and understanding the penalty for guessing wrong.

Standard vs Nearline

The break-even point is roughly one access per month per object. Read a file more than once a month on average and Standard is cheaper once you add in retrieval fees. Access it less than that and Nearline saves money without much retrieval risk. Nearline is the easiest upgrade from Standard for backup and archival use cases because the retrieval fee is low enough that occasional access is not a painful cost event.

Nearline vs Coldline

Coldline offers lower storage costs than Nearline, but the retrieval fee is higher and the minimum storage duration doubles to 90 days. The decision comes down to confidence in your access predictions. Disaster recovery data is where this matters most — see the warning below.

Model your DR retrieval cost before choosing Coldline

Restoring 500 GB from Coldline after an incident can cost significantly more than you saved on storage. If your recovery time objective is tight or your backup size is large, run the numbers at Coldline retrieval rates before committing. Nearline is almost always the better choice for recovery-critical data.

Coldline vs Archive

Archive is for data you are genuinely unlikely to access within the next year. The 365-day minimum means you are committing to a full year of storage costs even if you delete the data early. Use Archive only when access is very unlikely, data volume is large enough that the storage savings are meaningful, and you have compliance or operational reasons to retain the data long-term.

Archive retrieval is expensive

A single large unexpected retrieval from Archive can wipe out a year of storage savings. Only choose Archive for data where you have strong confidence it will not be accessed for at least twelve months. If there is any doubt, use Coldline.

When to use each storage class

Standard: actively accessed data

  • Website assets: images, CSS, and JavaScript files served directly to users. Retrieval costs on frequent web traffic add up fast, and Standard has none.
  • Pipeline inputs and outputs: data processed by Dataflow, BigQuery exports, and Spark jobs. Compute workloads access this data repeatedly and Standard keeps costs predictable.
  • Application uploads: user-generated content, profile photos, and documents being actively worked on. See Uploading Files with gsutil for how to set the class at upload time.
  • Unpredictable access patterns: if you cannot confidently model when or how often data will be read, Standard removes the risk of surprise retrieval fees.

Nearline: monthly access or backup data

  • Backup data: nightly or weekly backups you would restore after a failure. Nearline is a strong choice when restores are infrequent but the data must be available within minutes.
  • Monthly analytics exports: reports generated by data pipelines that are occasionally reviewed but not served to users.
  • Log archives: application or access logs kept after their active period for investigation or auditing. You might pull a specific day’s logs a few times a year.
  • Lifecycle-transitioned data: files that start in Standard and automatically move to Nearline after 30 days via a lifecycle rule.

Coldline: quarterly access or DR snapshots

  • Disaster recovery snapshots: VM disk snapshots and database exports kept for DR purposes that are only restored after catastrophic failure.
  • Quarterly audit data: compliance reports or exports that regulators might request. Access is predictable and infrequent.
  • Historical datasets: analytics data from several years ago, occasionally queried for trend analysis but not on any regular schedule.
  • Retention-gated data: files required to be kept for 1 to 3 years under compliance requirements but unlikely to be accessed.

Archive: long-term compliance and legal retention

  • Legal and compliance records: contracts, financial records, and audit trails required by law to be retained for 7 years or more.
  • Historical transaction logs: financial systems often require years of transaction data but rarely access records after the first few months.
  • Old database backups: snapshots of production databases kept as a last-resort fallback, with no expectation of ever being restored.
  • Regulatory hold data: documents retained solely to satisfy a legal hold obligation, with no anticipated access.

How to audit your current storage class usage

Before changing storage classes on existing buckets, check actual access patterns rather than guessing. Cloud Storage usage metrics in Cloud Monitoring show object access counts per bucket over time. If a bucket you assumed was cold turns out to have regular reads, moving it to a colder class will increase total cost, not reduce it.

Let data drive the decision

Run your buckets on Standard for 30 to 60 days with metrics enabled, then review access frequency per bucket before assigning lifecycle rules. This is especially important for buckets owned by multiple teams, where access patterns are hard to predict in advance.

How to set or change a storage class

You set the default storage class on a bucket at creation time. Objects inherit the bucket default unless you specify a class at upload. Changing the bucket’s default only affects new uploads — it does not update existing objects.

# Create a bucket with Nearline as the default storage class
gcloud storage buckets create gs://my-app-reports \
  --location=europe-west2 \
  --uniform-bucket-level-access \
  --default-storage-class=NEARLINE

# Upload an object, overriding the bucket default to Coldline
gcloud storage cp ./quarterly-report.pdf gs://my-app-reports/ \
  --storage-class=COLDLINE

# Change an existing object's storage class to Archive
gcloud storage objects update gs://my-app-reports/old-report-2023.pdf \
  --storage-class=ARCHIVE

# Update the bucket's default class for future uploads only
# (does not affect objects already in the bucket)
gcloud storage buckets update gs://my-app-reports \
  --default-storage-class=COLDLINE
Bulk transitions use lifecycle rules, not bucket defaults

Changing a bucket’s default storage class only applies to new uploads. To transition large numbers of existing objects, configure Object Lifecycle Management rules. Lifecycle rules are the recommended approach for cost optimisation at scale and avoid the need to manually rewrite each object.

Storage classes and versioning

When object versioning is enabled, every overwrite creates a noncurrent version that is stored at the same class as the live object at the time of overwrite. Noncurrent versions accumulate silently and are billed at full storage rates.

The practical solution is to combine versioning with a lifecycle rule that transitions noncurrent versions to a cheaper class (or deletes them) after a defined number of days. For example: keep noncurrent versions in Nearline for 30 days, then delete them. This gives you a meaningful recovery window without paying indefinitely for history.

Common beginner mistakes

  1. Using Standard for everything regardless of access frequency. Standard is the safest default, but for data accessed once a quarter or less, you are paying a premium for access speed you never use. Audit your buckets using Cloud Storage usage metrics and apply lifecycle rules to transition old objects automatically.

  2. Ignoring early deletion fees when transitioning objects. Moving an object to Nearline and deleting it after 15 days still incurs the full 30-day minimum storage charge. Only move objects if you are confident they will stay for the full minimum period.

  3. Assuming Archive requires a restore step. Cloud Storage Archive objects are immediately accessible via the standard APIs. There is no thaw or restore process. Do not add artificial restore delays in application code.

  4. Choosing Coldline for backup data without modelling retrieval cost. If you need to restore a large backup after an incident, Coldline retrieval fees add up quickly. Model the full retrieval cost at Coldline rates before committing. Nearline or Standard may be cheaper once you account for realistic restore scenarios.

  5. Forgetting that changing the bucket default does not update existing objects. Updating the bucket’s default class does not transition objects already in the bucket. Use Object Lifecycle Management rules or manually rewrite objects to change the class of existing data.

  6. Enabling versioning without a matching lifecycle rule. Noncurrent versions inherit the live object’s storage class and are billed indefinitely unless a lifecycle rule expires them. See Versioning in Cloud Storage for how to configure version expiry correctly.

Frequently asked questions

What is the difference between Standard, Nearline, Coldline, and Archive in GCP?

The four classes trade monthly storage cost against retrieval fees and minimum storage durations. Standard has no retrieval fee and no minimum duration. Nearline adds a retrieval fee and a 30-day minimum. Coldline has a higher retrieval fee and a 90-day minimum. Archive has the highest retrieval fee and a 365-day minimum. All four classes provide immediate access with no restore step.

Does GCP Archive storage require a restore step like AWS Glacier?

No. Cloud Storage Archive objects are available immediately via HTTPS. There is no restore or thaw step. The difference from other classes is purely financial: storage costs are very low, retrieval fees are high, and early deletion is penalised for the full 365-day minimum. Do not add artificial restore delays in your application code.

Can you change an object's storage class after uploading it?

Yes. You can change an object's storage class at any time by rewriting it using gcloud storage or the Cloud Storage API. This counts as a Class A operation and may trigger early deletion fees if the object has not yet met its current class minimum duration. To transition many objects automatically, use Object Lifecycle Management rules instead of rewriting each one manually.

When should you use Nearline instead of Coldline?

Use Nearline if you expect to access the data roughly once a month or if your recovery time objective requires fast access to backups. Use Coldline if you will access the data less than once a quarter. The key difference is retrieval cost: Coldline charges more per GB retrieved, so unexpected access is more expensive. If you are unsure, Nearline is the safer default for backup data.

Do lifecycle rules help reduce storage costs in GCP?

Yes. Object Lifecycle Management lets you automatically transition objects to cheaper storage classes as they age. For example, moving log files to Nearline after 30 days and to Coldline after 90 days. This removes the need to manually rewrite objects and is the recommended approach for cost optimisation at scale. Make sure the object age thresholds respect minimum storage durations to avoid triggering early deletion fees.

Last verified: 23 March 2026 Cloud services change frequently. Verify details against official documentation before making infrastructure decisions.