# Ansible module for file conversion excel to json

**URL:** <https://forum.ansible.com/t/ansible-module-for-file-conversion-excel-to-json/2691>\
**Category:** Get Help\
**Tags:** json\
**Created:** [December 1, 2023, 10:27am UTC](https://forum.ansible.com/t/ansible-module-for-file-conversion-excel-to-json/2691 "2023-12-01T10:27:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deenas2108](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@deenas2108](https://forum.ansible.com/u/deenas2108)\
**Post date:** [December 1, 2023, 10:27am UTC](https://forum.ansible.com/t/ansible-module-for-file-conversion-excel-to-json/2691/1 "2023-12-01T10:27:52Z")

</div>

I’m looking for Ansible module for file conversion from excel to json.

I cannot go with Python script, since I had to install pandas, openpyxl packages/ modules to convert files. Since we have Ansible implemented, I would like to know whether there is any Ansible module that converts Excel file to Json format.

Any help would be greatly appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![jpmens](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jpmens/32/5543_2.png) [@jpmens](https://forum.ansible.com/u/jpmens)\
**Post date:** [December 2, 2023, 2:27pm UTC](https://forum.ansible.com/t/ansible-module-for-file-conversion-excel-to-json/2691/2 "2023-12-02T14:27:29Z")

</div>

If there is a module for conversion from Excel to JSON it will likely require installation of one of the Python libraries you mention.

It’s not unsusual for a module or a plugin to require additional software: the `git` module requires the Git system package, and the `dig` lookup plugin, say, requires `dnspython`.

So, if you have the knowhow to create such a module, have at it! 🙂

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [December 2, 2023, 7:45pm UTC](https://forum.ansible.com/t/ansible-module-for-file-conversion-excel-to-json/2691/3 "2023-12-02T19:45:46Z")

</div>

Exporting from Excel as csv and then using the [community.general.read\_csv module](https://docs.ansible.com/ansible/latest/collections/community/general/read_csv_module.html) might be an option?
