JSON सूची ↔ लाइनें|विकल्प
इनपुट
e.g. ["apple", "banana", "cherry"]
आउटपुट
e.g. apple banana cherry

JSON List ↔ Lines Converter Online — Convert JSON Arrays to Text Lines

Need to convert a JSON array into simple text lines, or turn a list of lines into a JSON array? This free tool handles both directions instantly. Supports formatted and inline output, configurable indentation, and empty line skipping.

इस टूल का उपयोग कैसे करें

  1. Choose directionSelect "JSON → Lines" to extract values from a JSON array, or "Lines → JSON" to create a JSON array from text lines.
  2. Paste your inputPaste a JSON array like ["a","b","c"] or paste newline-separated lines into the input panel.
  3. Configure outputFor Lines → JSON, toggle formatted output and choose indentation (2 or 4 spaces).
  4. Copy the resultThe converted output appears instantly. Click Copy to use it.
  5. Chain with other toolsWith Auto-fill enabled, your output automatically carries over when you open another tool from the sidebar. Use the back and forward arrows to undo navigation and restore your previous tool state including all options.

विशेषताएं

Bidirectional Conversion

Convert from JSON array to lines or from lines to JSON array with a single mode switch.

Formatted Output

Choose between compact inline JSON or pretty-printed JSON with configurable indentation.

Handles Mixed Types

Non-string values in JSON arrays (numbers, objects) are converted to their string representation.

Skip Empty Lines

When converting lines to JSON, optionally skip blank lines to keep the array clean.

JSON Validation

The status bar shows whether the input is valid JSON, helping catch syntax errors.

Complete Privacy

All processing runs in your browser. Your data never leaves your device.

Auto-fill Pipeline

Enable Auto-fill to carry your output to the next tool. Navigate back and forward with full state restoration — input, output, and all settings are preserved.

वास्तविक उपयोग के मामले

1

Convert a JSON array of tags to one-per-line for review

Take a JSON array of tags or categories and convert it to a simple list with one item per line for easy scanning and editing.

2

Build a JSON array from a list of country names

Type or paste a list of country names, one per line, and instantly convert it into a properly formatted JSON array.

अक्सर पूछे जाने वाले प्रश्न

What is a JSON array?
A JSON array is an ordered list of values enclosed in square brackets, like ["apple", "banana", "cherry"]. Each value can be a string, number, object, or other JSON type.
Can I convert a JSON array of objects?
When converting JSON to lines, objects are serialized to their JSON string representation. Each object becomes one line.
What happens if my JSON is invalid?
The tool shows an error message and the status bar indicates "Valid JSON: No". Fix the syntax error and the output updates automatically.
What indentation options are available?
You can choose between 2-space and 4-space indentation when formatted output is enabled.
Does it handle nested arrays?
Nested arrays are serialized as JSON strings when converting to lines. Only the top-level array elements become individual lines.
Is my data stored anywhere?
No. All processing happens in your browser. Your data is never sent to any server.

संबंधित टूल्स

सभी टेक्स्ट प्रोसेसिंग सीधे आपके ब्राउज़र में होती है। आपका टेक्स्ट कभी किसी सर्वर को नहीं भेजा जाता, संग्रहीत नहीं किया जाता, या तीसरे पक्ष के साथ साझा नहीं किया जाता। यह टूल पूरी तरह से निजी और सुरक्षित है।