# Howto export to custom export formats

**URL:** <https://discourse.mapeditor.org/t/howto-export-to-custom-export-formats/656>\
**Category:** Guide\
**Created:** [July 19, 2015, 7:49pm UTC](https://discourse.mapeditor.org/t/howto-export-to-custom-export-formats/656 "2015-07-19T19:49:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ablu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ablu/32/1496_2.png) [@Ablu](https://discourse.mapeditor.org/u/Ablu)\
**Post date:** [July 19, 2015, 7:49pm UTC](https://discourse.mapeditor.org/t/howto-export-to-custom-export-formats/656/1 "2015-07-19T19:49:26Z")

</div>

One of the most frequently asked questions seems to be the question whether Tiled supports the file format XYZ for exporting the map to.

Tiled is a very flexible tool and not limited to a single engine or file format. However there is no real standard file format for map files (well… except the ones Tiled defines 😉), so people seem to be ending up implementing thousand different map formats for their own game/engine. Tiled of course cannot support all of those out of the box and comes with a small set of “core” formats.

Those are:

- TMX
- JSON
- LUA
- CSV

**If you can, always prefer to use those formats!** TMX, JSON and LUA all support 100% of the Tiled features. CSV is more limited and basically only contains the tile ids seperated by commas (so it is designed for people who are too lazy to parse more complex formats (or simply do not need all the other information)).

You can check out the [TMX format specification](http://doc.mapeditor.org/reference/tmx-map-format/) or the [list of libraries for loading Tiled maps](http://doc.mapeditor.org/reference/support-for-tmx-maps/) on the documentation pages for seeing how you can make your engine reading those “core” formats.

If you for some reason still want to write your own custom exporter you have two choices:

1. Write a python plugin for tiled which provides an exporter for your custom format  
In case you want to do this take a look at one of the existing python plugins:

- [https://github.com/bjorn/tiled/tree/master/src/plugins/python/scripts](https://github.com/bjorn/tiled/tree/master/src/plugins/python/scripts)
- **Note:** Python plugins can currently only provide either reading a map format or reading **and** writing a map format. So you cannot write an export only plugin. This shortcoming is tracked by [#897](https://github.com/bjorn/tiled/issues/897).

1. Write a C++ plugin for tiled which provides an exporter for your custom format  
There is no documentation for this either, but you can take a look at the existing plugins for examples:

- [https://github.com/bjorn/tiled/tree/master/src/plugins](https://github.com/bjorn/tiled/tree/master/src/plugins)
