Nodejs and browser based JavaScript differ because Node has a way to handle binary data even before the ES6 draft came up with . In Node, class is the primary data structure used with most I/O operations. It is a raw binary data that is allocated outside the V8 heap and once allocated, cannot be resized. ArrayBuffer Buffer Before Nodejs v6.0, to create a new buffer you could just call the constructor function with keyword: new To create a new buffer instance, in latest and current stable releases of Node: The constructor have been deprecated and replaced by separate , , and methods. new Buffer() Buffer.from() Buffer.alloc() Buffer.allocUnsafe() More information can be read through . official documentation Convert a Buffer to JSON Buffers can convert to JSON. The JSON specifies that the type of object being transformed is a , and its data. Buffer Convert JSON to Buffer Convert Buffer to Utf-8 String is not the only way to convert a buffer to a string. Also, it by defaults converts to a utf-8 format string. .toString() The other way to convert a buffer to a string is using core module from Nodejs API. StringDecoder Want to receive more articles like this one? Subscribe me here . Sometimes, I send “never seen before” content to my subscribers. Find me on Twitter: _The latest Tweets from Aman Mittal 🖖 (@amanhimself). #BookBlogger @ https://t.co/UQvyNf1OTC | Developer | #Nodejs |…_twitter.com Aman Mittal 🖖 (@amanhimself) | Twitter