© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Posandu Mapa
Student & Fullstack dev
Shorter version
String.fromCharCode(parseInt(str, 2).toString(10));
Example -: https://jsfiddle.net/b81axeju/
Chris Bongers
Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊
Nice one Posandu!
But not shorter in terms of length of characters.