Convert JSON & MongoDB data to Excel instantly — runs entirely in your browser, no server needed.
Live demo → Live Demo
- Paste & export — paste any JSON array or object and download a
.xlsxfile in one click - MongoDB support — paste raw MongoDB shell / Compass output directly (handles
NumberInt,ISODate,ObjectId, unquoted keys, single quotes, and more) - Auto-detection — automatically detects MongoDB format, no need to manually switch
- Live preview — see your data as a table before exporting (up to 100 rows)
- Smart column widths — Excel columns are auto-sized based on your data
- Nested objects — choose to stringify or flatten nested objects with dot notation (e.g.
address.city) - Date handling — keep dates as strings or convert ISO strings to native Excel date cells
- Drag & drop — drop a
.jsonfile directly onto the editor - File upload — click to browse and upload a
.jsonor.txtfile - Keyboard shortcut —
Ctrl + Enterto export instantly - 100% private — all processing happens in your browser, zero data is sent to any server
- No install, no signup, no backend — a single HTML file
Just open the deployed URL and start pasting data. No setup required.
git clone https://github.com/arundidauli/json-to-excel.git
cd json-to-excel
# Simply open in your browser — no build step needed
open index.htmlnpm i -g vercel
vercel --prodOr drag the folder into vercel.com/new.
[
{ "name": "Alice", "age": 30, "city": "Delhi" },
{ "name": "Bob", "age": 25, "city": "Mumbai" }
][
{
cost: NumberInt('500'),
createdAt: ISODate('2026-03-24T20:30:07.450Z'),
subscriberUsername: 'Test',
subscriberEmail: 'test@gmail.com',
subscriberName: 'Test',
athleteName: 'Alex '
}
]| MongoDB Type | Converted To |
|---|---|
NumberInt('500') |
500 (integer) |
NumberLong('...') |
number |
NumberDecimal('3.14') |
3.14 (float) |
ISODate('...') |
ISO date string (or Excel date) |
ObjectId('...') |
string |
BinData(...) |
"<BinData>" |
| Unquoted keys | quoted keys |
| Single-quoted strings | double-quoted strings |
| Trailing commas | removed |
undefined |
null |
| Tool | Purpose |
|---|---|
| Vanilla HTML / CSS / JS | UI & logic — zero framework, zero dependencies |
| SheetJS (xlsx) | Excel file generation, loaded from CDN |
| Google Fonts | Inter + JetBrains Mono |
| Vercel | Hosting |
No build step. No node_modules. No backend. Just one file.
json-to-excel/
└── index.html # The entire app — HTML, CSS, and JS in one file
└── README.md
Contributions, issues, and feature requests are welcome!
- Fork the repo
- Create your branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m 'Add my feature' - Push to the branch:
git push origin feature/my-feature - Open a Pull Request
MIT © Arun Kumar
Built with ❤️ by Arun Kumar