# How can I parse xlsx response in javascript to display in webpage

**URL:** <https://community.postman.com/t/how-can-i-parse-xlsx-response-in-javascript-to-display-in-webpage/21510>\
**Category:** Help Hub\
**Tags:** api, postman-api, javascript\
**Created:** [March 17, 2021, 5:39pm UTC](https://community.postman.com/t/how-can-i-parse-xlsx-response-in-javascript-to-display-in-webpage/21510 "2021-03-17T17:39:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravi.a620](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@aravi.a620](https://community.postman.com/u/aravi.a620)\
**Post date:** [March 17, 2021, 5:39pm UTC](https://community.postman.com/t/how-can-i-parse-xlsx-response-in-javascript-to-display-in-webpage/21510/1 "2021-03-17T17:39:48Z")

</div>

Hi, I have received the following response(from .xlsx file) in the network layer from the Javascript fetch API request. I would like to parse this response and display the correct format(Whether it is JSON or text) on the Webpage.

Here is the URL link, [https://file-examples-com.github.io/uploads/2017/02/file\_example\_XLSX\_10.xlsx](https://file-examples-com.github.io/uploads/2017/02/file_example_XLSX_10.xlsx)

 ![2021-03-17 13_26_17-](https://us1.discourse-cdn.com/getpostman/original/3X/c/3/c3c96b008178935f253274e52eb605caf0225f8e.png)

```
   const urlXL="https://file-examples-com.github.io/uploads/2017/02/file_example_XLSX_10.xlsx"
    const getXLFile = () => {
             return fetch(urlXL)
                   .then(response => response)
                    // .then(item => {
                    // const wb = XLSX.read(item, {type:'binary'}); // I was trying to use xlsx npm package
                    // console.log(wb)
                   // })
                  .catch(error => console.log(error))
                }

   getXLFile();

```
