Skip to content
New .xlsx cell formats & column widths

JSON to Excel
for Vue 3

Download your JSON data as an Excel (.xls / .xlsx) or CSV file, directly from the browser. Wrap any button, pick the fields, done.

npm i vue-json-excel3
customers.xlsx
ABCD
1Complete nameCityCountryTelephone
2Tony PeñaNew YorkUnited States1-541-754-3010
3ThessalonikiAthensGreece+1 855 275 5071
4Ada LovelaceLondonUnited Kingdom+44 20 7946 0958
5Grace HopperArlingtonUnited States1-703-555-0142
6Alan TuringManchesterUnited Kingdom+44 161 496 0754
My Worksheet

Features

Everything you need to export JSON from Vue ​

One wrapper component around any button — it turns your JSON into a spreadsheet the moment the user clicks.

Quick start

Up and running in a minute ​

1. Install

bash
npm install vue-json-excel3
bash
pnpm add vue-json-excel3
bash
yarn add vue-json-excel3
bash
bun add vue-json-excel3

Then read the Getting Started guide or browse the live Examples.

2. Use it

App.vue
vue
<script setup>
import JsonExcel from 'vue-json-excel3'

const data = [
  { name: 'Tony Peña', city: 'New York' },
  { name: 'Thessaloniki', city: 'Athens' },
]
</script>

<template>
  <JsonExcel :data="data" type="xlsx" name="people.xlsx">
    Download Excel
  </JsonExcel>
</template>

Released under the MIT License.