Build Serverless Applications with Cloudflare Workers KV

Serverless key-value storage for applications on Cloudflare

Cloudflare Workers KV provides access to a secure low latency key-value store at all of Cloudflare's data centers in over 180 cities across 80 countries. Developers can use Cloudflare Workers and Workers KV to augment existing applications or to build entirely new applications on top of Cloudflare's global cloud network. Workers KV scales seamlessly to support applications serving dozens or millions of users.

Already a customer? Activate Today

Cloudflare Workers KV
"Over ten million developers around the world rely on the npm Registry to download packages over 1 billion times a day. We invested in Cloudflare Workers to improve our global performance, and now with the Cloudflare Workers globally available key-value store (Cloudflare Workers KV), we can make performance improvements that used to be impossible. Cloudflare is amazing."
Laurie Voss
Co-founder and Chief Data Officer at npm

Build more with serverless storage

Building serverless applications with fast global response times requires moving compute and storage closer to the user. Cloudflare created a serverless execution environment at all of Cloudflare's data centers in over 180 cities across 80 countries, but customers still faced the time intensive and complex task of managing their own storage. Now with Workers KV, low latency global application access to a scalable key-value store is only an API call away.

Responsive applications anywhere

Serverless applications running on Cloudflare Workers receive low latency access to a globally distributed key-value store. Cloudflare Workers KV achieves this low latency by caching replicas of the keys and values in Cloudflare's global cloud network.

Build without scaling concerns

Cloudflare Workers KV lets developers focus their time on adding new capabilities to their serverless applications instead of wasting time scaling their key-value stores.

Create Targeted E Commerce Experiences

Create targeted e-commerce experiences

Using Workers KV to quickly access data, generate customized pages just as quickly as serving static sites. This makes it possible to add shopping cart data to e-commerce sites, target marketing to subsets of visitors, and significantly reduce latency for a whole host of applications.

Enforce Custom Authorization and Authentication

Enforce custom authorization and authentication

Store session tokens or other user information to quickly ensure the right user has access to the right content. Move the authentication layer out of applications and into the network itself to improve site speed while reducing the threat of application-level authentication vulnerabilities.

Customize Application Behavior

Customize application behavior

Store and return custom content based on user, session, cookie, or any other request attribute. Perform low latency injection of personalized content from Workers KV into any cached or uncached template before returning it to the user.

AB Testing

Deploy granular tests

Run A/B tests or stage release rollouts on a per-user basis. Use Cloudflare Workers KV to store millions of tests that can be quickly run from Workers anywhere in the world. Write analytics back to Workers KV or any other analytics services directly from the Worker.

Remember Specific Bad Actors

Remember specific bad actors

Stop cheaters, spammers, trolls, and other bad actors by storing IPs, user IDs, or any relevant data in Cloudflare Workers KV. Easily write to and run quick checks against large block lists to prevent bad actors from reaching protected applications that try to post, register, or perform other undesired actions.

"Optimizely powers billions of customer experiences every day, making it possible for the world’s largest brands to learn from their users and deliver better experiences. One of our biggest enemies is anything which would cause latency. Cloudflare Workers KV promises to allow us to retrieve the data we need quickly, wherever on earth the customer or visitor finds themselves."
Michael Hood
Senior Staff Performance Engineer, Optimizely

Included with Workers subscription

1 GB

Key-value storage space


Key-value reads


Key-value writes

Usage based charges

$0.50 GB/month

Additional storage

$0.50 1M

Additional key-value reads

$5 1M

Additional key-value writes

Key Features

Accessible from all 180 Cloudflare locations

Accessible from all 180 Cloudflare locations

Supports values up to 2 MB

Supports values up to 2 MB

Supports keys up to 512 Bytes

Supports keys up to 512 Bytes

Read and write from Cloudflare Workers

Read and write from Cloudflare Workers

API to write to Workers KV from 3rd party applications

API to write to Workers KV from 3rd party applications

Uses Cloudflare’s robust caching infrastructure

Uses Cloudflare’s robust caching infrastructure

Set arbitrary TTLs for values

Set arbitrary TTLs for values

Integrates with Workers Preview

Integrates with Workers Preview