bvid.js A mysterious number converter. All credit goes to mcfx. Reference Install In Browser <script src="bvid.js"></script> Node.js $ npm install --save bvid const bvid = require('bvid') Usage bvid.encode(170001) // BV17x411w7KC bvid.decode('BV17x411w7KC') // 170001