About this tool
Convert a JSON array to JSON Lines (one compact value per line) and back, entirely in your browser.
Array to lines needs a top-level JSON array; each element becomes one compact line, in order. Other valid JSON shows "input is not a JSON array" and bad syntax shows "invalid JSON". Lines to array trims each line, ignores blank ones, parses each separately and prints one array with two-space indentation. One bad line fails the whole conversion without saying which.
Where the browser supports JSON.rawJSON, numbers keep their exact text, so long integers and 1.0 are not rewritten; elsewhere they go through normal number parsing and may lose precision.