Datastore max cap string lengt?

so I’m storing a string into datastore 2, and the length of the string changes every time.
I have seen that the max string length is 65,536 characters
it also says Data 4,000,000 characters (Documentation - Roblox Creator Hub)
also seen 260,000 characters being said in some discussions

my question is, what is my actual cap when storing strings in datastore?

I am not sure but I think the 4,000,000 is in bytes, and the Key, Name or savable data is 50 characters max.

1 Like

Maximum data you can store per key in datastores is 4 megabytes or roughly 4.000.000 bytes which is how long can a string be since 1 character takes one byte(Excluding some UTF-8 characters that uses more than one byte to store a character.).
256 kilobytes or 256.000 bytes was the old data size limit until it got increased to 4 megabytes after this announcement.

3 Likes

Maximum is 4 million characters that can be assigned to a key

1 Like