var encodedString = '31.07.2023%2016%3A10%20Line1%5CnLine2'; var decodedValue = decodeURIComponent(encodedString) alert(decodedValue);