# Convert Microsoft files (docx, xlsx, pptx) to google documents files respectively

**URL:** <https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940>\
**Category:** Questions\
**Tags:** microsoft\
**Created:** [April 8, 2024, 8:30pm UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940 "2024-04-08T20:30:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidney27](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@sidney27](https://community.n8n.io/u/sidney27)\
**Post date:** [April 8, 2024, 8:30pm UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940/1 "2024-04-08T20:30:11Z")

</div>

## Describe the problem/error/question

Hey  
I have a DOCX file that I would like to upload to Google Drive and convert it to a Google document.  
I see that it is possible through their API to convert to Google’s special formats.  
How do I do this using n8n?

## Information on your n8n setup

- \*\*n8n version: _1.34.2_
- \*\*Database (default: SQLite): _postgresql_
- \*\*n8n EXECUTIONS\_PROCESS setting (default: own, main): _queue_
- \*\*Running n8n via (Docker, npm, n8n cloud, desktop app): _docker_
- \*\*Operating system: _ubuntu 22.4_

---

<div class="post-metadata">

**Author:** ![barn4k](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/barn4k/32/8170_2.png) [@barn4k](https://community.n8n.io/u/barn4k)\
**Post date:** [April 8, 2024, 9:58pm UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940/2 "2024-04-08T21:58:59Z")

</div>

hello @sidney27

Google **Docs** node does not have that functionality (n8n mostly convers the basic functionality). So you have to use the **HTTP Request** node to make it working

---

<div class="post-metadata">

**Author:** ![sidney27](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@sidney27](https://community.n8n.io/u/sidney27)\
**Post date:** [April 9, 2024, 3:00am UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940/3 "2024-04-09T03:00:03Z")

</div>

> [@barn4k](#):
>
> HTTP Request

Hi, @barn4k.  
Do you have an example populated HTTP Request node? I have no idea how to do it.  
Thanks.

---

<div class="post-metadata">

**Author:** ![barn4k](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/barn4k/32/8170_2.png) [@barn4k](https://community.n8n.io/u/barn4k)\
**Post date:** [April 9, 2024, 9:21am UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940/4 "2024-04-09T09:21:26Z")

</div>

> [@sidney27](#):
>
> I see that it is possible through their API to convert to Google’s special formats

Can you provide a link to the API?

HTTP Requests node should be used to access that API (you can use the credentials from Google nodes there)

---

<div class="post-metadata">

**Author:** ![sidney27](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@sidney27](https://community.n8n.io/u/sidney27)\
**Post date:** [April 9, 2024, 12:43pm UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940/5 "2024-04-09T12:43:06Z")

</div>

@barn4k, this is the link to the Google API documentation [Upload file data &nbsp;|&nbsp; Google Drive &nbsp;|&nbsp; Google for Developers](https://developers.google.com/drive/api/guides/manage-uploads).

In the documentation there is this part “Import to Google Docs types  
When you create a file in Drive, you might want to convert the file into a Google Workspace file type, such as Google Docs or Sheets. For example, maybe you want to transform a document from your favorite word processor into a Docs to take advantage of its features.  
To convert a file to a specific Google Workspace file type, specify the Google Workspace `mimeType` when creating the file.”

---

<div class="post-metadata">

**Author:** ![sidney27](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@sidney27](https://community.n8n.io/u/sidney27)\
**Post date:** [April 11, 2024, 3:28pm UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940/6 "2024-04-11T15:28:13Z")

</div>

For anyone looking for a solution to this same problem, I used Google’s API to perform the conversion following the [documentation](https://developers.google.com/drive/api/reference/rest/v3/files/copy.)

Follow my flow with the settings I used.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [April 18, 2024, 3:29pm UTC](https://community.n8n.io/t/convert-microsoft-files-docx-xlsx-pptx-to-google-documents-files-respectively/43940/7 "2024-04-18T15:29:05Z")

</div>

Closed on April 18, 2024, 3:29pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
