// HazaaZOOZ - javaScript - How to remove beginning of base64 javascript var base64Img = "data:image/png;base64,AAA="; base64Img = base64Img.replace("data:image/png;base64,", ""); console.log(base64Img);