# Defold MessagePack extension

**URL:** <https://forum.defold.com/t/defold-messagepack-extension/83524>\
**Category:** The Defoldmine\
**Created:** [November 16, 2026, 8:28pm UTC](https://forum.defold.com/t/defold-messagepack-extension/83524 "2026-11-16T20:28:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [November 16, 2026, 8:28pm UTC](https://forum.defold.com/t/defold-messagepack-extension/83524/1 "2026-11-16T20:28:18Z")

</div>

We’re happy to share with you a new native extension for Defold: **MessagePack** 📦

 ![message_pack_defold](https://forum-defold-uploads.b-cdn.net/original/3X/d/4/d4e29ac0b70fc72d4d300c0e8399bc360057feab.png)

It lets you **encode** Lua values and tables into compact binary data and **decode** them back into Lua, making it useful for network communication, data storage, and more.

[MessagePack](https://msgpack.org/) is a compact binary serialization format that provides an efficient way to store and exchange structured data.

One of the main advantages of MessagePack is faster decoding. Since the binary format includes information about container sizes, the decoder can allocate Lua tables more efficiently, significantly reducing the number of memory allocations.

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/7/2/72c84d234002ce03d320ebcadfd7c219866c69e1.png)

Additional benefits include potentially smaller file sizes (although this depends on the data and files can sometimes grow) and making data less human-readable compared to plain-text JSON (obfuscation).

**Key features:**

- 📦 Compact binary serialization with MessagePack
- ⚡ Native encoding and decoding, without intermediate data structures
- 🔄 Easy conversion between Lua tables and MessagePack data
- 🌍 Cross-platform support: HTML5, Windows, Linux, macOS, Android, and iOS
- 🛠 Simple API: `messagepack.encode()` and `messagepack.decode()`

The extension is open source and available under the MIT license.

👉 **Get it from the Defold Asset Portal:**

> **[MessagePack | Defold](https://defold.com/assets/message-pack/)**
>
> A native MessagePack encoder and decoder for Defold. Convert Lua values and tables to compact binary strings and decode MessagePack data back into Lua for storage or n...

💻 **GitHub repository:**

> **[GitHub - defold/extension-messagepack: An extension to decod/encode MessagePack payloads](https://github.com/defold/extension-messagepack)**
>
> An extension to decod/encode MessagePack payloads

Happy Defolding! ❤

---

<div class="post-metadata">

**Author:** ![CrazyAmphibian](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/crazyamphibian/32/26089_2.png) [@CrazyAmphibian](https://forum.defold.com/u/CrazyAmphibian)\
**Post date:** [November 16, 2026, 11:37pm UTC](https://forum.defold.com/t/defold-messagepack-extension/83524/2 "2026-11-16T23:37:01Z")

</div>

how does it compare to `sys.serialize`?
