Datastore limits per key

Hey everyone!

I found this “Roblox Datastores allow up to 260 KB of data to be stored in one key”, is that true?

How could I know if a specific key reached the limit? In order to create a new key to save more values.

Is there a way to convert the length of the key into KB size?
Thank you for your help

1 Like
  1. no. historically yes, the limit was 256kB, but after an update the current size is 4MB.
  2. you’ll get an error. if you want to know before the fact, see (3).
  3. yes. the values are stored as JSON strings so HttpService:JSONEncode(value) will do the trick. each character is 1 byte so 4 million of them is a maximum 4MB. you can check if the length of the JSON encoded string exceeds 4 million to know if it fits.
2 Likes