# \[Extension\] Stringify - Convert anything to strings!

**URL:** <https://forum.makecode.com/t/extension-stringify-convert-anything-to-strings/28585>\
**Category:** Show & Tell\
**Tags:** extension\
**Created:** [May 5, 2024, 3:28am UTC](https://forum.makecode.com/t/extension-stringify-convert-anything-to-strings/28585 "2024-05-05T03:28:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [May 5, 2024, 3:28am UTC](https://forum.makecode.com/t/extension-stringify-convert-anything-to-strings/28585/1 "2024-05-05T03:28:48Z")

</div>

Hello everyone, and it’s ya boy back with another bite-sized extension! Today, I made a simple extension to “stringify” any (default) datatype neatly. Numbers, booleans, arrays, objects, anything!

## Blocks (again, just one)

```js
function stringify(value: any): string;

```

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7a55a93c5214e0e444704ee5696021a1bbe7e9e5.png)

Pretty simple: drag the value you wish to convert, and get a string back! This was originally an internal extension meant for me but I decided to share it for good measure.

The conversion is also recursive, which means arrays inside of arrays, objects inside of objects and etc. will be converted.

That’s all for this extension, it’s short but sweet. The next one is going to be bigger. So, stay tuned for that. Peace ✌

> **[GitHub - sargedev/stringify: Methods used to convert datatypes to strings](https://github.com/sargedev/stringify)**
>
> Methods used to convert datatypes to strings

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [May 14, 2024, 9:20pm UTC](https://forum.makecode.com/t/extension-stringify-convert-anything-to-strings/28585/2 "2024-05-14T21:20:30Z")

</div>

## Imporant announcement

I changed my GitHub username, so please remove this extension in any project you may have it imported, and instead import the new link under my new username (sargedev).

This is not necessary, as [the extension should still work](https://forum.makecode.com/t/how-does-makecode-handle-github-username-migrations/28716/11), but it would be the safest option. By importing the new link you will also get access to any new updates.

**WARNING: Do not import the new link before removing the old one, as this could cause conflicts**

> **[GitHub - sargedev/stringify: Methods used to convert datatypes to strings](https://github.com/sargedev/stringify)**
>
> Methods used to convert datatypes to strings
