# Export data to xlsx

**URL:** <https://forum.ionicframework.com/t/export-data-to-xlsx/52139>\
**Category:** ionic-v1\
**Created:** [May 16, 2016, 6:54am UTC](https://forum.ionicframework.com/t/export-data-to-xlsx/52139 "2016-05-16T06:54:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuzun9x](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/kuzun9x/32/99126_2.png) [@kuzun9x](https://forum.ionicframework.com/u/kuzun9x)\
**Post date:** [May 16, 2016, 6:54am UTC](https://forum.ionicframework.com/t/export-data-to-xlsx/52139/1 "2016-05-16T06:54:26Z")

</div>

I have searched google about How to export data to xlsx in ionic app, but i have got nothing. Anyone have suggestion?

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [May 16, 2016, 8:28am UTC](https://forum.ionicframework.com/t/export-data-to-xlsx/52139/2 "2016-05-16T08:28:55Z")

</div>

use open standards like csv. xlsx is only a special format for microsoft office products. And they are not a single file it is more like an archive or container with multiple files (open a xlsx, docx, … with winrar 😉 ).

So use open standards like csv.

---

<div class="post-metadata">

**Author:** ![kuzun9x](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/kuzun9x/32/99126_2.png) [@kuzun9x](https://forum.ionicframework.com/u/kuzun9x)\
**Post date:** [May 17, 2016, 8:12am UTC](https://forum.ionicframework.com/t/export-data-to-xlsx/52139/3 "2016-05-17T08:12:31Z")

</div>

Thanks for reply.  
With CSV, I used some libraries (ngCsv, AlaSQL…), but It cannot export on mobiles. So I find out a way to do it: convert to csv string, then use $cordovaFile write string to myCsv.csv file and store it to android sdcard.  
But now, I need really export to xlsx files, How can?

---

<div class="post-metadata">

**Author:** ![zhas](https://avatars.discourse-cdn.com/v4/letter/z/d6d6ee/32.png) [@zhas](https://forum.ionicframework.com/u/zhas)\
**Post date:** [March 8, 2017, 2:46pm UTC](https://forum.ionicframework.com/t/export-data-to-xlsx/52139/4 "2017-03-08T14:46:40Z")

</div>

Just been in the same situation and found nothing definitive so, I created my own first approach:

> **[xanisu/ionic2-filesaver](https://github.com/xanisu/ionic2-filesaver)**
>
> ionic2-filesaver - save your data to a file and store it

Just started it, in this you I include an example on how to:

-convert json to csv file and store it on device  
-convert html data into .xls file

---

<div class="post-metadata">

**Author:** ![Michael\_Polla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/michael_polla/32/107451_2.png) [@Michael\_Polla](https://forum.ionicframework.com/u/Michael_Polla)\
**Post date:** [May 21, 2017, 11:19pm UTC](https://forum.ionicframework.com/t/export-data-to-xlsx/52139/5 "2017-05-21T23:19:20Z")

</div>

Awesome, a simple example project that works. Thank you !

---

<div class="post-metadata">

**Author:** ![bhimashankar](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bhimashankar](https://forum.ionicframework.com/u/bhimashankar)\
**Post date:** [November 1, 2017, 10:36pm UTC](https://forum.ionicframework.com/t/export-data-to-xlsx/52139/6 "2017-11-01T22:36:25Z")

</div>

Thank you so much… Awesome project.
