Here's a handy tool to test it: http://browsercookielimits.iain.guru/
It reveals quite a lot about the internal details regarding cookies. Click "Run Tests for Current Browser" for the results (it only takes a moment).
For example, I ran all tests for Mozilla Firefox 102.12.0esr :
1:39:10.65: Starting
1:39:10.725: Count: Gave up counting cookies with Character Length 3 and character "1": 1000
1:39:12.442: Size: Max Cookie Character Length using character "1": 4097
1:39:28.529: Count: Gave up counting cookies with Character Length 4097 and character "1": 1000
1:39:29.154: Size: Max Cookie Character Length using character "ÿ": 2049
1:39:43.612: Count: Gave up counting cookies with Character Length 2049 and character "ÿ": 1000
1:39:44.668: Count: Gave up counting cookies with Character Length 100 and character "1": 1000
1:39:45.339: Count: Gave up counting cookies with Character Length 10 and character "1": 1000
1:39:45.997: Count: Gave up counting cookies with Character Length 5 and character "1": 1000
1:39:46.239: Guessing Max Cookie Count Per Domain: NA
1:39:46.239: Guessing Max Cookie Size Per Cookie: 4097 bytes
1:39:46.240: Guessing Max Cookie Size Per Domain: NA
This answer is pretty old, but I just updated it. Hope it helps.