Data Converter
Transform structured data and encoded text locally without server upload.
Files are processed locally in your browser.
Files are processed locally in your browser.
JSONCSVTSVXMLBase64
Use in code
Most text-format conversion can be implemented with parser/serializer steps and browser Blob downloads.
Convert JSON records to CSV
TypeScriptPrimary API
records.map(...).join(',')
Converts uniform object arrays into CSV text.
Built-in APILibrary: Native TypeScript
type Row = Record<string, string | number | boolean | null>;
function jsonToCsv(rows: Row[]) {
if (rows.length === 0) return "";
const headers = Object.keys(rows[0]);
const lines = rows.map((row) => headers.map((key) => JSON.stringify(row[key] ?? "")).join(","));
return [headers.join(","), ...lines].join("
");
}How to use
- Choose a conversion mode.
- Paste content or upload a supported text file.
- Convert, review output, and download if needed.
Use cases
- Move data between APIs, spreadsheets, and scripts.
- Quickly decode or encode Base64 text.
Limitations and caveats
- CSV conversion expects a single table shape and UTF-8 text.
- JSON to XML targets standard object/array representations.