title: Convert large CSV files to JSON
body: <p>I don't mind if this is done with a separate program, with Excel, in NodeJS or in a web app.</p>
  
  <p>It's exactly the same problem as described here:</p>
  
  <p><a href="https://stackoverflow.com/questions/16617532/large-csv-to-json-object-in-node-js">Large CSV to JSON/Object in Node.js</a></p>
  
  <p>It seems that the OP didn't get that answer to work (yet accepted it anyway?). I've tried working with it but can't seem to get it to work either.</p>
  
  <p>In short: I'm working with a ~50,000 row CSV and I want to convert it to JSON. I've tried just about every online "csv to json" webapp out there, all crash with this large of a dataset.</p>
  
  <p>I've tried many <code>Node</code> CSV to JSON modules but, again, they all crash. The <code>csvtojson</code> module seemed promising, but I got this error: <code>FATAL ERROR: JS Allocation failed - process out of memory</code>.</p>
  
  <p>What on earth can I do to get this data in a useable format? As above, I don't mind if it's an application, something that works within Excel, a webapp or a Node module, so long as I either get a <code>.JSON</code> file or an object that I can work with within Node.</p>
  
  <p>Any ideas?</p>