Skip to main content
Cloudflare R2 is S3-compatible storage with zero egress fees. Major cost saving for high-bandwidth apps (video streaming, image-heavy).
Full walkthrough being written.

When to pick over S3

  • Bandwidth-heavy apps where S3 egress fees are significant.
  • You’re already on Cloudflare for CDN.
  • API parity with S3 (use the same SDKs).

Setup

R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET in vly secrets. Use AWS S3 SDK with R2’s endpoint.

AWS S3

The standard.

Convex file storage

Built-in.

UploadThing

Simpler alternative.
Last modified on April 18, 2026