# Custom output format for maps?

**URL:** <https://discourse.mapeditor.org/t/custom-output-format-for-maps/4201>\
**Category:** Questions\
**Created:** [November 13, 2019, 10:13pm UTC](https://discourse.mapeditor.org/t/custom-output-format-for-maps/4201 "2019-11-13T22:13:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Wells](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/anthony_wells/32/2532_2.png) [@Anthony\_Wells](https://discourse.mapeditor.org/u/Anthony_Wells)\
**Post date:** [November 13, 2019, 10:13pm UTC](https://discourse.mapeditor.org/t/custom-output-format-for-maps/4201/1 "2019-11-13T22:13:26Z")

</div>

I would like to create a custom exporter to output to my game engine’s format. Is this possible with scripts? Any simple examples/tutorials?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [November 13, 2019, 10:29pm UTC](https://discourse.mapeditor.org/t/custom-output-format-for-maps/4201/2 "2019-11-13T22:29:39Z")

</div>

Yes, as of Tiled 1.3 this is possible using JavaScript. Python may also still be an option for you but it is harder to set up. Please see [the documentation about scripting](https://doc.mapeditor.org/en/stable/reference/scripting/), and in particular this small example outputting a custom JSON format:

[https://doc.mapeditor.org/en/stable/reference/scripting/#script-registermapformat](https://doc.mapeditor.org/en/stable/reference/scripting/#script-registermapformat)

Binary formats are also supported, by using the [`BinaryFile`](https://doc.mapeditor.org/en/stable/reference/scripting/#script-binaryfile) class.
