---
title: "Export to CSV, JSON and XLSX from the Neon console"
description: "Neon's SQL Editor can now export query results to CSV, JSON and native XLSX, all generated client-side in JavaScript from results the browser already holds."
url: "https://swe.quest/articles/export-to-csv-json-and-xlsx-from-the-neon-console-70efcbd40b2eec04"
canonical: "https://neon.com/blog/export-to-csv-json-and-xlsx-from-the-neon-console"
source: "Neon"
published: "2024-05-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["javascript","frontend","postgres","open-source"]
---

# Export to CSV, JSON and XLSX from the Neon console

A post on [Neon](https://swe.quest/sources/neon.md), published 2024-05-16, 6 min read, Case study. Original: [https://neon.com/blog/export-to-csv-json-and-xlsx-from-the-neon-console](https://neon.com/blog/export-to-csv-json-and-xlsx-from-the-neon-console)

## Summary

Neon's SQL Editor can now export query results to CSV, JSON and native XLSX, all generated client-side in JavaScript from results the browser already holds. CSV and JSON needed care to keep Postgres int8 and decimal values out of JavaScript numbers and to avoid duplicate JSON keys. XLSX required handling Excel's day-zero epoch and 1900 leap-year bug, and its non-base-26 column lettering. Zip files are built by repackaging GZIP output from the browser's CompressionStream API, which shares the DEFLATE data and CRC with Zip. The work is released as two small npm libraries, littlezipper (under 2KB) and xlsxtable.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- JavaScript in the browser ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Zip/DEFLATE basics

## Keywords

Neon, CompressionStream, littlezipper, xlsxtable, XLSX, Excel, PostgreSQL

## Related posts

- [@neondatabase/serverless hits 1.0.0](https://swe.quest/articles/neondatabase-serverless-hits-1-0-0-d5430675bc92b751.md): Neon · 2025-03-25 · Medium · 5 min read · PostgreSQL, Serverless, TypeScript, Application security, JavaScript
  Neon's JavaScript/TypeScript serverless driver, which carries Postgres queries over HTTP and WebSockets for environments without raw TCP such as V8 isolates and browsers, reaches 1.0.0 after a refactor that adds auto-generated types via api-extractor and CI tests across Node, Bun, Deno, browsers, Cloudflare Workers, Vercel and the Prisma/Drizzle adapters.
- [The world’s fastest tool for querying JSON files](https://swe.quest/articles/the-world-s-fastest-tool-for-querying-json-files-5bf7115ac2686d02.md): ClickHouse · 2022-10-14 · Easy · 3 min read · Performance engineering, Analytics & OLAP, SQL
  clickhouse-local, a single-binary SQL engine for local and remote files, outperforms SPySQL, jq, trdsql, Miller, OctoSQL, spark-sql, Pandas and DSQ when querying large JSON files in the SPySQL benchmark on Amazon book reviews data.
- [The billion docs JSON Challenge: ClickHouse vs. MongoDB, Elasticsearch, and more](https://swe.quest/articles/the-billion-docs-json-challenge-clickhouse-vs-mongodb-elasticsearch-and-more-e942a192bad31355.md): ClickHouse · 2025-01-29 · Medium · 28 min read · Analytics & OLAP, Databases, Storage engines, Performance engineering
  JSONBench is a reproducible benchmark that loads up to one billion Bluesky event JSON documents into ClickHouse, MongoDB, Elasticsearch, DuckDB and PostgreSQL, then measures storage size and the speed of five analytical queries.
- [ClickHouse Release 23.9](https://swe.quest/articles/clickhouse-release-23-9-73e8083c92226065.md): ClickHouse · 2023-10-24 · Medium · 12 min read · Analytics & OLAP, Databases, Storage engines, Identity & auth
  ClickHouse 23.9 ships 20 new features, 19 performance optimisations and 55 bug fixes, highlighted by JSON schema type inference, a GCD compression codec and SSH key authentication.
- [What's New in pg\_clickhouse - JSONB Support, SQL value functions, Streaming, and more](https://swe.quest/articles/what-s-new-in-pg-clickhouse-jsonb-support-sql-value-functions-streaming-and-more-ecb202cf6ff32298.md): ClickHouse · 2026-04-24 · Medium · 10 min read · PostgreSQL, Analytics & OLAP, Query engines, Memory management
  pg\_clickhouse, the Postgres foreign data wrapper for querying ClickHouse, now pushes down far more operations to ClickHouse.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
