Categories

XLSX JSON Transformer

Bidirectional conversion between JSON arrays and Excel sheets, with nested object flattening and restoration

Convert data both ways: - JSON array -> XLSX spreadsheet (flatten nested paths) - XLSX spreadsheet -> JSON array (restore nested objects) Nested key paths use a configurable separator (default: dot notation).

Example Results

2 examples

Flatten Nested JSON to XLSX

Convert nested JSON array into an Excel sheet with dot-path columns

xlsx-json-transformer-example1.xlsx View File
View input parameters
{ "mode": "json_to_xlsx", "jsonInput": "[{\"id\":1,\"user\":{\"name\":\"Alice\",\"address\":{\"city\":\"Paris\"}},\"tags\":[\"a\",\"b\"]}]", "pathSeparator": ".", "arrayMode": "index" }

Restore Nested JSON from XLSX

Read flattened columns from Excel and rebuild nested JSON objects

xlsx-json-transformer-example2.json View File
View input parameters
{ "mode": "xlsx_to_json", "excelFile": "/public/samples/xlsx/xlsx-json-transformer-example1.xlsx", "pathSeparator": ".", "restoreTypes": true }

Click to upload file or drag and drop file here

Maximum file size: 100MB Supported formats: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

API Documentation

Request Endpoint

POST /en/api/tools/xlsx-json-transformer

Request Parameters

Parameter Name Type Required Description
mode select Yes -
jsonInput textarea No -
excelFile file (Upload required) No -
sheetName text No -
pathSeparator text No -
arrayMode select No -
keepNullValues checkbox No -
restoreTypes checkbox No -
rootArrayKey text No -
outputIndent number No -

File type parameters need to be uploaded first via POST /upload/xlsx-json-transformer to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-xlsx-json-transformer": {
      "name": "xlsx-json-transformer",
      "description": "Bidirectional conversion between JSON arrays and Excel sheets, with nested object flattening and restoration",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=xlsx-json-transformer",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]