🔍

首页Home › 开发工具Developer Tools

🔢 矩阵与 JSON 二维数组互转Matrix ⇄ JSON 2D Array Converter

把空格、Tab 或逗号分隔的矩阵文本转换成 JSON 二维数组,或把二维数组转回矩阵;还能输出 NumPy、MATLAB、LaTeX、Markdown 表格和 CSV 格式,自动检查每行列数。Turn a matrix written with spaces, tabs or commas into a JSON 2D array, or a 2D array back into a matrix — and export NumPy, MATLAB, LaTeX, Markdown table or CSV formats, with row-length checks.

使用说明与常见问题How-to & FAQ

「矩阵与 JSON 二维数组互转」是什么?What is the Matrix ⇄ JSON 2D Array Converter tool?

把空格、Tab 或逗号分隔的矩阵文本转换成 JSON 二维数组,或把二维数组转回矩阵;还能输出 NumPy、MATLAB、LaTeX、Markdown 表格和 CSV 格式,自动检查每行列数。Turn a matrix written with spaces, tabs or commas into a JSON 2D array, or a 2D array back into a matrix — and export NumPy, MATLAB, LaTeX, Markdown table or CSV formats, with row-length checks.

如何使用「矩阵与 JSON 二维数组互转」?How do I use the Matrix ⇄ JSON 2D Array Converter?

粘贴矩阵(每行一行,元素用空格、Tab 或逗号分隔)或 JSON 二维数组,工具会自动识别输入格式,选择输出格式即可。数字会自动转成数值,非数字保留为字符串。Paste a matrix (one row per line, elements separated by spaces, tabs or commas) or a JSON 2D array; the input format is detected automatically — just pick the output format. Numbers become numeric values and anything else stays a string.

能识别哪些输入格式?Which input formats are recognised?

JSON 二维数组、每行一行的空格/Tab/逗号分隔文本,以及 MATLAB 风格的分号换行写法(如 [1 2; 3 4])都能识别。JSON 2D arrays, rows of space/tab/comma-separated text, and MATLAB-style semicolon rows such as [1 2; 3 4].

「矩阵与 JSON 二维数组互转」免费吗?数据会上传吗?Is the Matrix ⇄ JSON 2D Array Converter free? Is my data uploaded?

「矩阵与 JSON 二维数组互转」完全免费,无需注册或安装,手机和电脑都能用;所有处理都在你的浏览器本地完成,输入的内容和文件不会上传到服务器。The Matrix ⇄ JSON 2D Array Converter is completely free with no sign-up or install and works on phones and desktops; everything runs locally in your browser and nothing you enter is uploaded.

相关工具Related tools

🔢 矩阵计算器Matrix Calculator🧾 JSON 格式化校验JSON Formatter & Validator🎲 生成随机矩阵Generate Random Matrix⁻¹ 矩阵求逆Invert Matrix

← 全部工具All tools