The official node.js documentation for Buffer is the best place to check for something like this. As previously noted, Buffer currently supports these encodings: 'ascii', 'utf8', 'utf16le'/'ucs2', 'base64', 'base64url', 'latin1'/'binary', and 'hex'.

Answer from mscdex on Stack Overflow
🌐
Node.js
nodejs.org › api › buffer.html
Buffer | Node.js v26.11.1 Documentation
Node.js also supports the following binary-to-text encodings. For binary-to-text encodings, the naming convention is reversed: Converting a Buffer into a string is typically referred to as encoding, and converting a string into a Buffer as decoding.
🌐
W3Schools
w3schools.com › nodejs › met_buffer_isencoding.asp
Node.js Buffer.isEncoding() Method
Check if the Buffer supports the utf8 encoding: console.log(Buffer.isEncoding('utf8')); Run example » · The Buffer.isEncoding() method returns true if the specified encoding is supported. Buffer.isEncoding(encoding); Check if the Buffer supports the utf8 encoding: console.log(Buffer.isEncoding('windows-1252')); Run example » ·
🌐
Node.js
nodejs.org › download › release › v10.2.0 › docs › api › buffer.html
Buffer | Node.js v10.2.0 Documentation
For 'base64' and 'hex', this function assumes valid input. For strings that contain non-Base64/Hex-encoded data (e.g. whitespace), the return value might be greater than the length of a Buffer created from the string.
🌐
freeCodeCamp
freecodecamp.org › news › node-js-buffer-explained
Node.js Buffer Explained
February 17, 2020 - .toString() by default converts a buffer to a utf-8 format string. This is how you decode a buffer. If you specify an encoding you can convert the buffer to another encoding
🌐
Readthedocs
node.readthedocs.io › en › latest › api › buffer
Buffer - node - Read the Docs
Allocates a new buffer containing the given str. encoding defaults to 'utf8'.
🌐
W3Schools
w3schools.com › nodejs › nodejs_buffer.asp
Node.js Buffer Module
Buffers support various encodings including UTF-8, Base64, and Hex
🌐
Mastering JS
masteringjs.io › tutorials › node › buffer-to-string
Using the Buffer `toString()` Function in Node.js - Mastering JS
August 21, 2020 - By default, toString() converts the buffer to a string using UTF8 encoding.
Find elsewhere
🌐
DEV Community
dev.to › angdecoder › demystifying-buffers-in-nodejs-d2c
Demystifying Buffers in Node.js - DEV Community
February 20, 2024 - Some examples of encoding are :- UTF-8, UTF-16, ASCII etc. In Node.js default encoding is UTF-8. Buffer objects are used to represent a fixed-length sequence of bytes.
🌐
Node.js
nodejs.org › docs › latest-v6.x › api › buffer.html
Buffer | Node.js v6.17.1 Documentation
This means that while doing something ... win-1252-encoded data, and using 'latin1' encoding may incorrectly decode the characters. Buffer instances are also Uint8Array instances....
🌐
Medium
medium.com › @ks.deepak07 › understanding-node-js-buffers-69b0adae2005
Understanding Node.js Buffers | by Deepak Kumar Singh | Medium
May 4, 2025 - To store any character (e.g. “H”) in binary, computer will first convert that character to a number (using Character Sets), then convert that number to its binary representation (using Character Encodings).
🌐
University of New Brunswick
cs.unb.ca › ~bremner › teaching › cs2613 › books › nodejs-api › buffer
buffer
Node.js also supports the following two binary-to-text encodings. For binary-to-text encodings, the naming convention is reversed: Converting a Buffer into a string is typically referred to as encoding, and converting a string into a Buffer as decoding.
🌐
Educative
educative.io › answers › what-is-the-nodejs-buffertostring-method
What is the Node.js Buffer.toString() method?
The encodings supported by Node.js include utf8, utf16le, and latin1. ... start: This references the beginning data of the buffer.
🌐
TutorialsPoint
tutorialspoint.com › nodejs › nodejs_buffers.htm
Node.js - Buffers
Default: 'utf8'. The encoding parameter identifies the character encoding to be used when converting string into bytes. const buf1 = Buffer.from('Hello World'); console.log(buf1); console.log(buf1.toString());
🌐
NodeBook
thenodebook.com › home › buffers › what is a buffer? bits/bytes, hex, encoding, and typedarray memory
What Is a Buffer in Node.js? Bytes, Encoding, and TypedArray Memory
May 23, 2026 - A Buffer is how Node keeps those incoming bytes completely intact. It stores raw numerical values from 0 to 255, lets you access them directly by index, and provides built-in methods for encoding and decoding.
🌐
W3Resource
w3resource.com › node.js › nodejs-buffer.php
Using Buffers in Node.js - w3resource<
November 13, 2023 - In the above example, the first argument to buffer.write is the string ("Node.js") to write to the buffer, and the second argument is the string encoding ("utf8"). In this case, second argument is not mandatory as "utf8" is the default encoding. ...
🌐
GitHub
github.com › nodejs › node › issues › 2835
provide a way to introduce new encodings for `new Buffer('someString', 'someEncoding')` · Issue #2835 · nodejs/node
September 12, 2015 - And that's why a widely used package iconv-lite (450+ direct dependents, ≈240+ thousands of daily downloads) provides a method (.extendNodeEncodings()) that adds a support of many other known encodings to the Buffer API.
Author: nodejs
🌐
Node.js
nodejs.org › download › release › v4.9.1 › docs › api › buffer.html
Buffer | Node.js v4.9.1 Manual & Documentation
It is possible to convert back and forth between Buffers and ordinary JavaScript string objects by using an explicit encoding method.