[{"data":1,"prerenderedAt":389},["ShallowReactive",2],{"blog-post-/blog/en/how-to-view-and-convert-jsonl-files-online":3,"related-posts-/blog/en/how-to-view-and-convert-jsonl-files-online":374},{"id":4,"title":5,"author":6,"body":7,"category":355,"date":356,"description":357,"extension":358,"featured":359,"image":360,"meta":361,"navigation":359,"path":362,"readingTime":363,"seo":364,"stem":365,"tags":366,"tools":372,"__hash__":373},"content/blog/en/how-to-view-and-convert-jsonl-files-online.md","How to View, Validate, and Convert JSONL (JSON Lines) Files Online (2026 Guide)","Anything Tools Editorial",{"type":8,"value":9,"toc":342},"minimark",[10,39,49,69,72,77,192,194,198,206,218,236,240,279,283,290,313,315,319],[11,12,13,14,18,19,18,22,25,26,29,30,34,35,38],"p",{},"If you work with ",[15,16,17],"strong",{},"OpenAI Batch API",", ",[15,20,21],{},"Anthropic Claude",[15,23,24],{},"DeepSeek",", or ",[15,27,28],{},"HuggingFace fine-tuning datasets",", you have almost certainly encountered ",[31,32,33],"code",{},".jsonl"," (JSON Lines) or ",[31,36,37],{},".ndjson"," (Newline-Delimited JSON) files.",[11,40,41,42,44,45,48],{},"However, the moment you paste a multi-line ",[31,43,33],{}," file into a traditional JSON formatter, you get a ",[31,46,47],{},"SyntaxError: Unexpected token"," on line 2.",[11,50,51,52,54,55,58,59,62,63,68],{},"In this guide, we will explain how JSONL works and show you how to inspect, validate, filter, and convert ",[31,53,33],{}," files into spreadsheets (",[31,56,57],{},".csv",") or standard ",[31,60,61],{},".json"," arrays locally in your browser using our free ",[64,65,67],"a",{"href":66},"/dev/jsonl-viewer","JSONL Viewer & Converter",".",[70,71],"hr",{},[73,74,76],"h2",{"id":75},"jsonl-vs-standard-json-vs-csv","JSONL vs. Standard JSON vs. CSV",[78,79,80,110],"table",{},[81,82,83],"thead",{},[84,85,86,91,100,105],"tr",{},[87,88,90],"th",{"align":89},"left","Feature",[87,92,93,94,96,97,99],{"align":89},"JSONL (",[31,95,33],{}," / ",[31,98,37],{},")",[87,101,102,103,99],{"align":89},"Standard JSON (",[31,104,61],{},[87,106,107,108,99],{"align":89},"CSV (",[31,109,57],{},[111,112,113,137,157,176],"tbody",{},[84,114,115,121,124,134],{},[116,117,118],"td",{"align":89},[15,119,120],{},"Structure",[116,122,123],{"align":89},"One independent JSON object per line",[116,125,126,127,130,131],{"align":89},"Single root array ",[31,128,129],{},"[...]"," or object ",[31,132,133],{},"{...}",[116,135,136],{"align":89},"Flat rows and columns",[84,138,139,144,151,154],{},[116,140,141],{"align":89},[15,142,143],{},"Streaming & Append",[116,145,146,147,150],{"align":89},"✅ Append-friendly (",[31,148,149],{},"O(1)"," per line)",[116,152,153],{"align":89},"❌ Must parse entire file to append",[116,155,156],{"align":89},"✅ Append-friendly",[84,158,159,167,170,173],{},[116,160,161],{"align":89},[15,162,163,164,99],{},"Nested Data (",[31,165,166],{},"messages",[116,168,169],{"align":89},"✅ Native nested arrays & objects",[116,171,172],{"align":89},"✅ Native nested structures",[116,174,175],{"align":89},"❌ Requires string escaping",[84,177,178,183,186,189],{},[116,179,180],{"align":89},[15,181,182],{},"Best Use Case",[116,184,185],{"align":89},"LLM fine-tuning, Batch APIs, server logs",[116,187,188],{"align":89},"REST API payloads, config files",[116,190,191],{"align":89},"Spreadsheets, BI dashboards",[70,193],{},[73,195,197],{"id":196},"step-by-step-how-to-inspect-convert-jsonl-online","Step-by-Step: How to Inspect & Convert JSONL Online",[199,200,202,203,205],"h3",{"id":201},"step-1-paste-jsonl-or-drop-a-jsonl-file","Step 1: Paste JSONL or Drop a ",[31,204,33],{}," File",[11,207,208,209,211,212,214,215,217],{},"Open the ",[64,210,67],{"href":66}," and paste your multi-line JSONL payload—or drag and drop a local ",[31,213,33],{}," or ",[31,216,37],{}," file.",[219,220,221],"blockquote",{},[11,222,223,224,227,228,231,232,235],{},"💡 ",[15,225,226],{},"Bonus",": Have a standard JSON array (",[31,229,230],{},"[{...}, {...}]",") that you need to prepare for OpenAI fine-tuning? Paste the array directly into the input box and click ",[15,233,234],{},"To Strict JSONL"," to flatten each object onto its own line!",[199,237,239],{"id":238},"step-2-browse-in-table-view-or-llm-conversation-cards","Step 2: Browse in Table View or LLM Conversation Cards",[241,242,243,250,269],"ul",{},[244,245,246,249],"li",{},[15,247,248],{},"Table View",": Automatically detects all top-level keys across your records and displays them in a scrollable spreadsheet table. Click any row to open the full pretty-printed JSON inspector.",[244,251,252,255,256,258,259,18,262,18,265,268],{},[15,253,254],{},"Line Cards & Chat View",": If your dataset contains an LLM ",[31,257,166],{}," array (",[31,260,261],{},"system",[31,263,264],{},"user",[31,266,267],{},"assistant","), the viewer renders each conversation turn as color-coded chat badges alongside the raw JSON.",[244,270,271,274,275,278],{},[15,272,273],{},"Line-by-Line Error Pinpointing",": If line 48 has a missing quote or trailing comma, the tool flags ",[15,276,277],{},"Line 48"," specifically while still rendering the other 999 valid records.",[199,280,282],{"id":281},"step-3-export-to-csv-json-array-or-normalized-jsonl","Step 3: Export to CSV, JSON Array, or Normalized JSONL",[11,284,285,286,289],{},"Click ",[15,287,288],{},"Export File"," at the top right to download your dataset as:",[241,291,292,298,307],{},[244,293,294,297],{},[15,295,296],{},"Download CSV",": Opens cleanly in Excel, Google Sheets, or Pandas (nested objects are safely serialized and RFC-4180 escaped).",[244,299,300,303,304,306],{},[15,301,302],{},"Download JSON",": Converts all lines into a properly indented ",[31,305,129],{}," JSON array.",[244,308,309,312],{},[15,310,311],{},"Download JSONL",": Strips empty lines and formats every record as strict single-line NDJSON.",[70,314],{},[73,316,318],{"id":317},"related-developer-workflows","Related Developer Workflows",[241,320,321,328,335],{},[244,322,323,324,68],{},"Inspecting a single nested JSON object? Use our ",[64,325,327],{"href":326},"/dev/json-formatter","JSON Formatter & Validator",[244,329,330,331,68],{},"Converting spreadsheet exports back into JSON? Try the ",[64,332,334],{"href":333},"/dev/csv-to-json","CSV to JSON Converter",[244,336,337,338,68],{},"Auditing exported AI chat histories? Check out the ",[64,339,341],{"href":340},"/dev/chatgpt-session-converter","ChatGPT Session Converter",{"title":343,"searchDepth":344,"depth":344,"links":345},"",2,[346,347,354],{"id":75,"depth":344,"text":76},{"id":196,"depth":344,"text":197,"children":348},[349,352,353],{"id":201,"depth":350,"text":351},3,"Step 1: Paste JSONL or Drop a .jsonl File",{"id":238,"depth":350,"text":239},{"id":281,"depth":350,"text":282},{"id":317,"depth":344,"text":318},"Developer Tools","2026-03-31T00:00:00.000Z","Learn what .jsonl and .ndjson files are, why standard JSON formatters fail on them, and how to inspect LLM fine-tuning datasets or convert JSONL to CSV and JSON in your browser.","md",true,"/blog/how-to-view-and-convert-jsonl-files-online.png",{},"/blog/en/how-to-view-and-convert-jsonl-files-online",null,{"title":5,"description":357},"blog/en/how-to-view-and-convert-jsonl-files-online",[367,368,369,370,371],"jsonl viewer","jsonl to csv","jsonl to json","ndjson","llm fine-tuning dataset",[66,326,333,340],"hGxVPUOiJKCR9duRoCPgC6htfjSx4xkIW0ppgP8UW0k",[375,382],{"path":376,"title":377,"description":378,"date":379,"image":380,"category":355,"readingTime":381},"/blog/en/convert-image-to-base64-guide","Convert Images to Base64: When It Helps and When It Hurts","Learn when Base64 image strings are useful for prototypes, emails, and small assets, plus when normal image files are better.","2026-08-14T00:00:00.000Z","/blog/convert-image-to-base64-guide.png",5,{"path":383,"title":384,"description":385,"date":386,"image":387,"category":355,"readingTime":388},"/blog/en/format-sql-online","How to Format SQL Online: Make Queries Easier to Read","Format SQL online to turn dense queries into readable, review-ready code. Learn a safe workflow for indentation, keywords, and sharing SQL without changing its meaning.","2026-07-10T00:00:00.000Z","/blog/format-sql-online.png",4,1794662921655]