CSV to JSON

Fork me on GitHub

This converter is written entirely in JavaScript and runs completely in the browser. Once the page finishes loading, there are no subsequent calls to the server. Because of this, there’s no risk of data breach. Other converters written in server-side languages, which usually submit input and output text using plain HTTP instead of HTTPS, transmitting your data in the clear as plain, unencrypted text, expose you and your data to unnecessary risk. While these server-side converters are good exercises in programming, and may be useful in a trusted intranet setting, they should not be used if they are hosted by untrusted third parties on the unsecured Web.

Conversion of the CSV input text to JavaScript objects is handled by code written by me. Conversion of the JavaScript objects to JSON output text is handled by Douglas Crockford’s public domain JSON JavaScript library.

    • Marc Fearby
    • September 12th, 2011 12:56am

    This is awesome! Thank you. I was about to copy and paste some records from a table and format as JSON manually so that I could protype web forms in Ext Designer and the thought of having to do it manually was not pleasant. Sure enough, your page was only a quick Google away :-) Excellent work!

  1. Yeah, this rules. Thank you!

    • Chad S
    • September 21st, 2011 12:27pm

    Thank you for providing this tool!

    • Willi
    • September 22nd, 2011 11:18pm

    Very useful. Works also with big datasets. Thank a lot.

    • David
    • October 3rd, 2011 8:24pm

    Any chance for the code to this be released? Be nice to self host, or port to run via command line rather than web form (e.g. Rhino JS engine or MS JScript for WSH).

    • Thanks for the suggestion, David. You're not the first person to request something like this. I'm in the process of setting up a GitHub repository for this utility.

      If you have any other suggestions, please feel free to let me know! 

    • kimberlad
    • November 1st, 2011 6:28am

    Code would be good for me to, but totally understand if your looking to corner the market in CSV to JSON conversion :-)

    • Not at all! I'm an avid support of free/libre/open source software. Besides, the converter makes use of the JSON library written by Douglas Crockford; I feel it would only be fair to "pay it forward" and release the code.

      I should have a GitHub repository set up soon.

    • -s u r k h-
    • November 2nd, 2011 4:05pm

    Thank you so much for this tool. It is extremely helpful and has saved me a LOT of time!

    • Peter
    • November 6th, 2011 11:35am

    Great stuff, very helpful aid to the development process.

    • Jeff
    • January 16th, 2012 4:40pm

    You are the man. Thank you.

    • Barry
    • January 23rd, 2012 1:01pm

    Outstanding!

    • Jordan
    • March 13th, 2012 1:02pm

    Thanks for this, saved me in a pinch!

    • tony
    • March 15th, 2012 5:14pm

    wow! This is terrific! 

  1. September 27th, 2010
  2. February 7th, 2011
  3. October 6th, 2011

Leave a Reply

Your email address will not be published. Required fields are marked *

Connect with Facebook

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>