# Tmx to json converter online?

**URL:** <https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756>\
**Category:** Questions\
**Created:** [February 19, 2019, 2:00am UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756 "2019-02-19T02:00:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avi\_Pheimei](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/avi_pheimei/32/2223_2.png) [@Avi\_Pheimei](https://discourse.mapeditor.org/u/Avi_Pheimei)\
**Post date:** [February 19, 2019, 2:00am UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756/1 "2019-02-19T02:00:33Z")

</div>

I wanted to ask, if I use an online tmx to json converter will it work?

I know it’s off topic but, I don’t have a PC so I am using a script(php) to generate tile map, but the problem is it generates only a tmx file and phaser doesn’t seem to support it…

so I there any way, like a online converter or so?

Thanks very much

---

<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:** [February 20, 2019, 9:40pm UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756/2 "2019-02-20T21:40:38Z")

</div>

There is no online converter as far as I am aware, but Tiled does ship with built-in conversion capabilities on the command-line using the `--export-map` option:

```nohighlight
tiled --export-map [format] <source file> <target file>

```

The format is optional (it will be derived from the file extension of the target file if possible). In your case this command should work:

```nohighlight
tiled --export-map map.tmx map.json

```

---

<div class="post-metadata">

**Author:** ![Avi\_Pheimei](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/avi_pheimei/32/2223_2.png) [@Avi\_Pheimei](https://discourse.mapeditor.org/u/Avi_Pheimei)\
**Post date:** [February 21, 2019, 1:01pm UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756/3 "2019-02-21T13:01:47Z")

</div>

Thanks but the problem is.  
I dont have tiled, i made the map using a mobile editor, it exports only tmx files and phaser dont support it

---

<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:** [February 21, 2019, 1:16pm UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756/4 "2019-02-21T13:16:54Z")

</div>

> [@Avi\_Pheimei](#):
>
> I dont have tiled, i made the map using a mobile editor, it exports only tmx files and phaser dont support it

Ah, I somehow read past the part where you said “I don’t have a PC”. I’m sorry but at the moment I don’t know of a ready made converter that can be used without a PC.

---

<div class="post-metadata">

**Author:** ![Avi\_Pheimei](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/avi_pheimei/32/2223_2.png) [@Avi\_Pheimei](https://discourse.mapeditor.org/u/Avi_Pheimei)\
**Post date:** [February 21, 2019, 3:03pm UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756/5 "2019-02-21T15:03:55Z")

</div>

Haha no problem. thanks anyways  
Looks like im gonna make games 🙂

---

<div class="post-metadata">

**Author:** ![Modanung](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/modanung/32/3100_2.png) [@Modanung](https://discourse.mapeditor.org/u/Modanung)\
**Post date:** [February 21, 2019, 3:14pm UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756/6 "2019-02-21T15:14:24Z")

</div>

Feel free to PM me a TMX (or some) to convert once in a while - not _too_ often please 😉 - until then.

I’m currently also not at my laptop though. 🙂

---

<div class="post-metadata">

**Author:** ![Avi\_Pheimei](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/avi_pheimei/32/2223_2.png) [@Avi\_Pheimei](https://discourse.mapeditor.org/u/Avi_Pheimei)\
**Post date:** [February 21, 2019, 3:15pm UTC](https://discourse.mapeditor.org/t/tmx-to-json-converter-online/3756/7 "2019-02-21T15:15:55Z")

</div>

Ok thank you so much,  
I can start making maps now, you’re a life saver 🙂
