How to Merge JSON Files: Fastest and Easiest Way (2026)
Merge multiple JSON files into one using free online tool, Python, or jq command line. Complete guide with code examples for arrays, objects, nested JSON, and deduplication.
This tool takes a JSON array and renders it as a clean, sortable table you can copy as HTML or download as Excel, CSV, or an HTML file. Useful for documentation, emails, wikis, and web pages built from API responses or data exports. Runs in the browser, free, no signup.
or drag and drop a .json file here
[
{ "id": 1, "name": "Alice", "dept": "Engineering", "salary": 85000 },
{ "id": 2, "name": "Bob", "dept": "Marketing", "salary": 65000 },
{ "id": 3, "name": "Carol", "dept": "Sales", "salary": 70000 }
]┌────┬───────┬─────────────┬────────┐
│ id │ name │ dept │ salary │
├────┼───────┼─────────────┼────────┤
│ 1 │ Alice │ Engineering │ 85000 │
│ 2 │ Bob │ Marketing │ 65000 │
│ 3 │ Carol │ Sales │ 70000 │
└────┴───────┴─────────────┴────────┘
✓ Sortable columns
✓ Search & filter
✓ Export to Excel, CSV, or HTMLConverting JSON to table format in Python is best done with the pandas library using pd.json_normalize(). This function flattens nested JSON into a tabular DataFrame, automatically creating columns for each field. You can then export to CSV, Excel, or HTML tables with built-in pandas methods. Perfect for data analysis, creating reports, or displaying JSON data in spreadsheets. Nested objects are flattened into separate columns such as user.name; lists stay in a single cell unless you expand them with the record_path argument.
import json
import pandas as pd
# Load JSON data
with open('data.json', 'r') as f:
data = json.load(f)
# Convert to DataFrame (table); nested objects become dot-notation columns
df = pd.json_normalize(data)
# Display as formatted table
print(df.to_string(index=False))
# Export to various formats
df.to_html('output.html', index=False, classes='table table-striped')
df.to_csv('output.csv', index=False)
df.to_excel('output.xlsx', index=False) # requires openpyxl
print(f"Converted {len(data)} records to table")Converting JSON to HTML tables in JavaScript is straightforward by iterating through the JSON array and creating table elements dynamically. Use Object.keys() to extract headers and loop through rows to populate cells. Libraries like DataTables or AG Grid provide advanced features like sorting, filtering, and pagination. Ideal for web dashboards, admin panels, or displaying API data in user-friendly table format with interactive features.
// Simple JSON to HTML table converter
function jsonToHtmlTable(jsonData) {
if (!Array.isArray(jsonData) || jsonData.length === 0) {
return '<p>No data</p>';
}
// Extract headers from first object
const headers = Object.keys(jsonData[0]);
let html = '<table class="table table-striped">\n';
// Add header row
html += ' <thead>\n <tr>\n';
headers.forEach(h => html += ` <th>${h}</th>\n`);
html += ' </tr>\n </thead>\n';
// Add data rows
html += ' <tbody>\n';
jsonData.forEach(row => {
html += ' <tr>\n';
headers.forEach(h => {
const val = row[h] ?? '';
html += ` <td>${val}</td>\n`;
});
html += ' </tr>\n';
});
html += ' </tbody>\n</table>';
return html;
}
// Usage
const data = [
{ name: 'Alice', age: 30, city: 'NYC' },
{ name: 'Bob', age: 25, city: 'LA' }
];
document.getElementById('output').innerHTML = jsonToHtmlTable(data);Each object in the JSON array becomes one table row. Each key becomes a column header. If you have 10 objects in your JSON array, you get a table with 10 rows plus a header row. The input must be standard JSON; for a JSON Lines log or dataset (one object per line), browse and search it in the JSONL Viewer instead.
The output is a standard HTML <table> element with <thead> and <tbody>. Copy HTML gives you that markup plus a small embedded <style> block, ready to paste into an HTML page, email template, or any CMS field that accepts raw HTML (such as a WordPress Custom HTML block). Editors like Notion or Google Docs don't render pasted HTML code, so for those download the Excel or CSV file and import it instead. Download HTML saves the same table as a complete .html page you can open in any browser.
API response to documentation: you took a raw API response from Postman or curl, converted it to a table, and added it to your docs to show your team what the endpoint returns. Way easier than explaining JSON structure in text.
Email reports: HTML tables in emails are the standard format for structured data. If you're sending weekly metrics, user lists, or transaction summaries via email, converting JSON to an HTML table makes the data readable in any email client.
Internal dashboards: quickly rendering a data snapshot as a readable table without writing HTML by hand. You have JSON from a database query or API call, and you need to display it on an internal admin page. Convert to table, paste the HTML, done.
Developer handoffs: showing backend devs or PMs what a JSON payload looks like in table form. Instead of sending a wall of JSON in Slack, convert it to a table so people can actually scan the data and understand the structure at a glance.
Nested objects are flattened by default. A record like {"user": {"name": "Ali", "email": "ali@example.com"}} becomes two columns, user.name and user.email, no matter how deep the nesting goes. You don't need to run the data through the JSON Flattener first.
If you'd rather keep each nested object together, switch off Flatten Nested under Advanced. The table rebuilds and the "user" column shows the object as JSON text, for example {"name":"Ali","email":"ali@example.com"}.
Arrays stay in one cell either way. A "tags" field with ["javascript", "react", "nodejs"] shows up as javascript, react, nodejs, while an array of objects is shown as JSON text. If you want one row per tag instead, preprocess the JSON to expand the array into separate objects before converting.
To keep the page responsive, the table includes the first 1,000 rows by default (the Max Rows setting). If your array is longer, a notice above the table shows the full row count and a button to show every row. The on-page preview always renders the first 50 matching rows; Copy HTML and the Excel, CSV, and HTML downloads include every row in the table, filtered and sorted the way you have it on screen. If a spreadsheet is all you need, the JSON to Excel converter goes straight to an XLSX or CSV file without building a table first.
Merge multiple JSON files into one using free online tool, Python, or jq command line. Complete guide with code examples for arrays, objects, nested JSON, and deduplication.
Split large JSON files into smaller chunks with an online tool, Python scripts, or jq. Includes examples for big datasets and nested JSON.