JSONL to Excel Converter

Convert JSONL (JSON Lines) to Excel (.xlsx) format instantly. Automatically extracts columns from JSON keys. 100% client-side.

Input JSONL

Drop a .jsonl file here, or click to browse

Supports .jsonl, .ndjson, .json, .txt

作者: Jerry Fan更新於 2026年2月

How to Convert JSONL to Excel

JSONL to Excel conversion extracts all unique keys from your JSON objects and uses them as Excel column headers. Each JSON object becomes one row in the spreadsheet.

Nested objects are flattened using dot notation. For example, {"address":{"city":"NYC"}'} becomes a column named "address.city". Arrays are serialized as JSON strings in the Excel cell.

Our converter handles mixed schemas gracefully. If different JSONL lines have different keys, all unique keys are collected as columns, and missing values are left empty.

Excel 的硬性限制 — 轉換前請先確認

Excel 並非資料庫,其檔案格式有明確的上限(詳見 Microsoft 官方規格與限制)。以下每項限制都曾在未發出警告的情況下破壞使用者的匯出資料;轉換前請先確認您的資料是否超出限制:

每個工作表 1,048,576 列
這是 .xlsx 的列數上限。記錄數超過此上限的 JSONL 檔案無法放進單一工作表,請先分割檔案(使用 JSONL 分割工具的依行數模式,將每份設為 1,000,000 行,即可讓每個檔案對應一個工作表)。
每個工作表 16,384 欄
這個上限可能比您想像中更快觸及:展平含有大型索引展開陣列的 JSONL 時,每個陣列位置都可能產生一欄。如果展平後的欄數暴增,請在匯出前改用其他陣列處理策略。
每個儲存格 32,767 個字元
更長的字串會在開啟時遭到截斷。大型內嵌內容(堆疊追蹤、HTML、base64 資料塊)最常觸發此問題;請將完整內容保留在 JSONL 來源中,改為匯出參照或截短的預覽。
數字最多 15 位有效數字
Excel 以 64 位元浮點數儲存數字,第 16 位起的數字會變成零。像 9007199254740993 這類 Snowflake ID 會在毫無警告的情況下損毀。請將 ID 欄匯出為文字;識別碼損毀是此類錯誤中代價最高的一種,因為聯結會在不知不覺間無法配對。
開啟時自動強制轉換型別
僅僅看似日期的值也會被改寫:字串 2024-03 開啟後會變成 2024 年 3 月;基因符號 MARCH1 甚至曾在已發表的研究資料集中被轉成日期。將受影響的欄設定為文字格式,是唯一可靠的防範方式。

在損害發生前看出問題

同時觸及兩項限制的記錄

{"order_id": 9007199254740993, "batch": "2024-03", "total": 129.5}

若直接匯出,order_id 的最後一位會因浮點數捨入而遺失,batch 則會變成日期。本工具偵測到這些風險模式時,會將這兩欄都寫成文字,因此您在 Excel 中看到的數字會與原始資料完全一致。

What is JSONL to Excel Conversion?

JSONL to Excel conversion transforms newline-delimited JSON objects into a native Excel spreadsheet (.xlsx) that Microsoft Excel, Google Sheets, and LibreOffice Calc can open directly. Each JSON key becomes a column header, and each line becomes a row with proper cell formatting.

Unlike CSV, Excel files support multiple data types, cell formatting, and larger datasets without delimiter conflicts. This makes JSONL to Excel conversion ideal for data analysts and business users who need to work with structured data in spreadsheet applications.

Common Use Cases

Business Reporting

Convert JSONL data exports to Excel for creating pivot tables, charts, and business intelligence reports.

Database Export Analysis

Transform JSONL database exports into Excel for data exploration with sorting, filtering, and conditional formatting.

Stakeholder Data Sharing

Convert JSONL datasets to Excel for sharing with non-technical stakeholders who prefer native spreadsheet formats.

Financial Data Processing

Transform JSONL transaction logs and financial data into Excel for accounting, auditing, and compliance workflows.

ML Dataset Review

Convert machine learning training datasets from JSONL to Excel for manual review, annotation, and quality assurance.

API Log Analysis

Transform JSONL API logs into Excel spreadsheets for trend analysis, error rate tracking, and performance monitoring.

Common Errors & Solutions

Inconsistent Keys Across JSONL Lines

When JSONL records have different sets of keys, the Excel output will have columns for every unique key. Missing values in rows that lack a key are left as empty cells. This is expected behavior, not an error.

Deeply Nested Objects Produce Long Column Names

Objects nested several levels deep are flattened with dot notation, resulting in long column headers like "user.address.geo.lat". Consider using the Flatten JSON tool first if you need more control over the flattening depth.

Large Files May Take Longer

Excel file generation requires collecting all data in memory before creating the spreadsheet. Very large JSONL files (100MB+) may take several seconds to process. For extremely large datasets, consider using JSONL to CSV conversion instead.

Frequently Asked Questions

這個 JSONL 轉 Excel 轉換器如何偵測欄位?

巢狀物件使用點號表示法展平。例如,{"user":{"name":"Alice"}'} 會變成欄位 "user.name",值為 "Alice"。陣列保持為儲存格中的 JSON 字串。

巢狀 JSON 物件在 Excel 輸出中會被展平嗎?

所有行中的唯一鍵值都會被收集為 Excel 欄位。如果某行缺少某個鍵值,對應的儲存格會留空。

這個 JSONL 轉 Excel 轉換器會上傳我的資料嗎?

是的。所有轉換都在您的瀏覽器本機進行。不會將任何資料傳送到任何伺服器。您的 JSONL 內容永遠不會離開您的裝置。

可以用這個工具將 NDJSON 檔案轉換為 Excel 嗎?

無法直接用此工具轉回,但您可以將 Excel 檔案匯出為 CSV,然後使用我們的 CSV 轉 JSONL 轉換器將其轉換為 JSONL 格式。

JSONL 轉 Excel 儲存格中陣列如何呈現?

CSV 是純文字格式,值中的逗號可能造成問題且缺少儲存格格式。Excel(.xlsx)是二進位格式,原生處理特殊字元、支援多種資料類型並保留欄位寬度。需要在試算表應用程式中操作時請選擇 Excel。

如何將 Excel 轉回 JSONL?

是的。產生的 .xlsx 檔案相容於 Microsoft Excel、Google Sheets、LibreOffice Calc 及其他支援 Open XML 格式的試算表應用程式。

Excel 輸出有列數限制嗎?

轉換器本身沒有硬性列數限制。但 Excel 本身每個工作表最多支援 1,048,576 列。對於大多數 JSONL 檔案,這不會成為問題。轉換器可處理包含數十萬行的檔案。

Excel 檔案是否包含自動篩選器和欄位大小調整?

手動匯入需要在 Excel 中使用 Power Query 或 VBA 腳本解析 JSON。我們的轉換器會自動處理所有解析、展平和欄位擷取,數秒內產生即可使用的 Excel 檔案。

相關工具與指南