Convert Localization JSON Dictionary to CSV
Quickly transform your i18n JSON localization dictionaries into a flattened, single-level CSV spreadsheet. This browser-local tool is pre-configured with `{"flatten": true}` to ensure all nested keys like `"app.greeting"` become `"app_greeting"` for immediate spreadsheet compatibility. Your sensitive translation data never leaves your machine, ensuring privacy and compliance.
Workflow Checklist
- Verify the first column contains flattened keys like `app_title` or `error_message_invalid_input`.
- Confirm the second column contains the correct translation strings for your target language.
- Check for any truncated strings or unexpected character encoding issues in the first 100 rows.
- Ensure the total number of rows in the CSV matches the number of unique translation keys in your source JSON.
Parent Tool & Hub
Step-by-Step Guide: Convert Localization JSON Dictionary to CSV
Follow these exact steps to complete this workflow locally in your browser without uploading files.
- 1
Locate Your i18n JSON File
Navigate to your project's `locales` or `i18n` directory in Windows Explorer or Mac Finder. Identify the specific JSON file (e.g., `en.json`, `fr.json`) you need to convert to CSV.
Tip: Ensure your JSON is valid before upload; use an online linter if unsure. - 2
Drag & Drop JSON to ShowPro
Open `/tools/convert-i18n-translation-json-to-csv-sheet` in your browser. Drag your `en.json` file directly from your desktop or Finder onto the designated drop zone on the ShowPro tool page.
Tip: Alternatively, use the 'Browse Files' button for direct file selection. - 3
Verify Flattening & Preview
Observe the output preview. Nested JSON keys, like `{"messages": {"welcome": "Hello"}}`, are automatically flattened to `messages_welcome` in the CSV, per the `{"flatten": true}` preset.
Tip: Review the first few rows to confirm key structure and value integrity. - 4
Download UTF-8 CSV File
Click the 'Download CSV' button. Your browser will prompt you to save the generated CSV file. Choose a location like your 'Downloads' folder or project directory.
Tip: The output is always UTF-8 encoded for broad compatibility. - 5
Import CSV to Spreadsheet Software
Open Microsoft Excel, Google Sheets, or LibreOffice Calc. Use the 'Data' > 'Get Data' or 'Import' function, selecting 'CSV' as the file type. Ensure 'UTF-8' encoding is chosen for correct character display.
Tip: In Excel, choose 'Data' > 'From Text/CSV' and ensure 'File Origin' is '65001: Unicode (UTF-8)'.
Technical Specifications & Preset Reference
| Parameter | Recommended Setting | Why It Matters |
|---|---|---|
| Input File Type | JSON (RFC 8259) | Ensures the tool can correctly parse and interpret the structure of your localization data. |
| Key Flattening | Enabled (via `{"flatten": true}`) | Converts nested JSON paths (e.g., `a.b.c`) into single-level CSV column headers (e.g., `a_b_c`) for spreadsheet readability. |
| Output Encoding | UTF-8 (with BOM) | Ensures all international characters in your translations display correctly in Excel and other spreadsheet programs without corruption. |
| Processing Location | Browser-Local (0 Bytes Uploaded) | Guarantees your sensitive translation strings and intellectual property remain on your device, never touching external servers. |
| Max File Size | Browser Memory Dependent | Large JSON files are handled efficiently, limited only by your browser's available RAM, not server constraints. |
Common Issues & Troubleshooting Fixes
Excel imports CSV as a single column.
When importing to Excel, use 'Data' > 'From Text/CSV', then in the import dialog, ensure 'Delimiter' is set to 'Comma' and 'File Origin' is '65001: Unicode (UTF-8)'.
Special characters (e.g., accents, emoji) display as gibberish in spreadsheet.
This usually indicates incorrect encoding during import. Always select 'UTF-8' as the file encoding when opening the CSV in your spreadsheet software (e.g., 'Data' > 'Get Data' > 'From Text/CSV' in Excel).
Nested JSON keys are not flattened as expected.
This tool is pre-configured with `{"flatten": true}`. If you're seeing unflattened keys, you might be using a different JSON to CSV tool. Verify you are on `/tools/convert-i18n-translation-json-to-csv-sheet`.
CSV output has empty rows or missing data.
Ensure your source JSON is well-formed and valid. Malformed JSON, such as missing commas or unclosed braces, can lead to parsing errors and incomplete CSV output.
Why Run This Workflow Locally in ShowPro?
Converting i18n JSON to CSV locally in your browser offers unparalleled privacy for sensitive localization data. Unlike remote servers that require uploading your entire translation dictionary, ShowPro processes everything on your device. This eliminates the risk of data breaches, accidental exposure, or compliance issues, making it ideal for proprietary business contracts or confidential product strings that cannot leave your machine.
Frequently Asked Questions
Why is flattening important for i18n JSON to CSV conversion?
Flattening converts hierarchical JSON structures (e.g., `{"menu": {"item": "Home"}}`) into a single-level key (`menu_item`) suitable for CSV columns. This makes the data much easier to manage, sort, and filter within a traditional spreadsheet program.
Can I convert multiple JSON localization files at once?
This tool is designed for single-file conversion to ensure precise control over each language's output. For multiple files, process them individually, then combine the resulting CSVs in your spreadsheet software.
What if my JSON contains arrays or complex objects beyond simple key-value pairs?
This tool focuses on flattening string-based localization dictionaries. Arrays or complex objects within your JSON might be represented as stringified JSON in a single CSV cell, or their data might be omitted if not directly translatable strings.
Is there a limit to the size of the JSON file I can convert?
The conversion happens entirely within your browser's memory. While there's no arbitrary file size limit imposed by ShowPro, extremely large JSON files (hundreds of MBs) might consume significant browser resources, potentially causing slowdowns or crashes on older machines.
How does this tool handle JSON files with different language structures?
The tool processes the JSON structure as it is. If your `en.json` has `app.title` and `fr.json` has `app_title_fr`, the CSV will reflect those distinct keys. Consistency in key naming across languages is recommended for easier management.