var ca = "your.jwt.token"; var base64Url = ca.split('.')[1]; var decodedValue = JSON.parse(window.atob(base64Url));