RFC 4648 — The Base16, Base32, and Base64 Data Encodings by node

This document describes the commonly used base 64, base 32, and base 16 encoding schemes, the use of padding, line feeds in encoded data, non-alphabet characters, and the URL- and filename-safe alphabet.