# Is there a limit to how much text can be in a string variable?

**URL:** <https://forum.makecode.com/t/is-there-a-limit-to-how-much-text-can-be-in-a-string-variable/37466>\
**Category:** Help\
**Created:** [June 22, 2025, 2:29am UTC](https://forum.makecode.com/t/is-there-a-limit-to-how-much-text-can-be-in-a-string-variable/37466 "2025-06-22T02:29:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Errorpixel](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@Errorpixel](https://forum.makecode.com/u/Errorpixel)\
**Post date:** [June 22, 2025, 2:29am UTC](https://forum.makecode.com/t/is-there-a-limit-to-how-much-text-can-be-in-a-string-variable/37466/1 "2025-06-22T02:29:41Z")

</div>

I’m currently developing a rhythm game which makes use of all of the standart buttons. For that I will have to make charts myself or make a collab topic for people to make their own charts and an array simply won’t do for that. Therefore I’m intending to use strings and string seperation.

The current issue is that I have no idea how long a string is allowed to be and therefore I don’t know if I need to potentially split it into a string array instead.  
So does anyone by any chance know the character limit to string types?

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [June 22, 2025, 2:30am UTC](https://forum.makecode.com/t/is-there-a-limit-to-how-much-text-can-be-in-a-string-variable/37466/2 "2025-06-22T02:30:48Z")

</div>

I’ve had ridiculously long strings in my word games and haven’t come across a limit yet.

However, depending on what you’re doing (particularly if you need to edit the strings afterward), then you may want to split them up into a string array anyway.

---

<div class="post-metadata">

**Author:** ![Errorpixel](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@Errorpixel](https://forum.makecode.com/u/Errorpixel)\
**Post date:** [June 22, 2025, 4:31pm UTC](https://forum.makecode.com/t/is-there-a-limit-to-how-much-text-can-be-in-a-string-variable/37466/3 "2025-06-22T16:31:47Z")

</div>

Only during loading will I edit the string because I’m turning it into values I can use easily with an array

Having it initially as a string just saves code space while also allowing people to make their own charts which I can then copy paste easily into the game
