HTML5 FileReader API Simple examples using HTML5 FileReader API Example Image Preview CSV Reader CSV Export CSV Reader with Papaparse Image Compress Save files to indexedDB References JavaScript FileReader In case you have doubt why I'm not using semicolon is because I got inspiration from these talks: Semicolons cannot save you! Are Semicolons Necessary in JavaScript?