# Can Tiled Export map data to txt file

**URL:** https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716
**Category:** Questions
**Created:** [September 30, 2016, 4:26pm UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716 "2016-09-30T16:26:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sprite7](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sprite7](https://discourse.mapeditor.org/u/Sprite7)
#### Post date: [September 30, 2016, 4:26pm UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716/1 "2016-09-30T16:26:49Z")

</div>

If I use tiled to create a world map, can i then export the tile Numbers data to a text file so that i can then manipulate and display the map in my own code. So essentially just want the data  
e.g. tile 1 water, tile 2 grass, tile 3 rock, tile 4coin, so map data would look something like this  
Data "1,1,1,1,1,1,1,1"  
Data "1,2,2,2,2,2,1,1"  
Data "1,1,3,2,3,3,1,1"  
Data "1,1,3,3,2,3,2,1"  
Data "1,1,1,3,4,2,1,1"  
Data "1,1,1,1,1,1,1,1"  
I want to know if i can export a map created with Tiled in a raw tile number format like this mini map data above.

---

<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: [September 30, 2016, 5:09pm UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716/2 "2016-09-30T17:09:24Z")

</div>

Try the CSV export, it should be what you’re looking for.

---

<div class="post-metadata">

### Author: ![Sprite7](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sprite7](https://discourse.mapeditor.org/u/Sprite7)
#### Post date: [September 30, 2016, 6:12pm UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716/3 "2016-09-30T18:12:58Z")

</div>

Many Thanks! I will download and try a test export, before commiting to use for project.

---

<div class="post-metadata">

### Author: ![djlink111](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/djlink111/32/1680_2.png) [@djlink111](https://discourse.mapeditor.org/u/djlink111)
#### Post date: [March 29, 2018, 8:06pm UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716/4 "2018-03-29T20:06:54Z")

</div>

hey there, how do i intemperate the number values? this is the 10th tile normal, flipped x , flipped y, flipped z  
10, 2147483658, 1073741834, 536870922,  
how do i read this?

---

<div class="post-metadata">

### Author: ![djlink111](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/djlink111/32/1680_2.png) [@djlink111](https://discourse.mapeditor.org/u/djlink111)
#### Post date: [March 29, 2018, 8:13pm UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716/5 "2018-03-29T20:13:57Z")

</div>

is there some reference to read these values for their translations and tile index so i can write an importer for my game?

---

<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: [March 29, 2018, 9:35pm UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716/6 "2018-03-29T21:35:50Z")

</div>

Similar question just [came up at GitHub](https://github.com/bjorn/tiled/issues/1923). Does the information provided in the [TMX format documentation](http://docs.mapeditor.org/en/latest/reference/tmx-map-format/#tile-flipping) help? Those bit flags are not used by the CSV format though, which does not support tile flipping.

---

<div class="post-metadata">

### Author: ![djlink111](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/djlink111/32/1680_2.png) [@djlink111](https://discourse.mapeditor.org/u/djlink111)
#### Post date: [March 30, 2018, 11:58am UTC](https://discourse.mapeditor.org/t/can-tiled-export-map-data-to-txt-file/1716/7 "2018-03-30T11:58:19Z")

</div>

Thank you, i did not see that document. I will look through it and see how those values represent the transforms. Thank you for your reply. OOOOOOh i see… yes bit flags representing far more than tile ID and transform. This is exactly what I’m looking for… Thanks again! 😃
