HTML Encode


Online HTML Encode Tool will help you to Encode your html to Encode HTML means it will encode as sample.


  • You can also Beautify your HTML Code here.
  • Minify HTML is also available for your flexibility.
  • Download your code directly from the tool.
  • You can Redo, Undo and clear your Data.
  • Check out our try sample option it will provide sample to check how the tool will be worked.
  • When you type on text area there is an auto-update option that will update code automatically with encode.

Know more about HTML.


HTML Encoding is working properly in Windows, Mac, Linux, Chrome, Firefox, Safari and Edge and it's Free.

\n '); } function expand() { console.log(document.getElementById("input").value); try { var pertty = ""; pretty = vkbeautify.xml(document.getElementById("input").value, 4); console.log(pretty); document.getElementById("input").value = pretty; } catch (err) { $('#errorLeft').text(err.message).show(); $('#textarealeft').addClass('error'); } } function collaps() { try { var pretty = ""; pretty = vkbeautify.xmlmin(document.getElementById("input").value, false); document.getElementById("input").value = pretty; } catch (err) { $('#errorLeft').text(err.message).show(); $('#textarealeft').addClass('error'); } } function eraseTextleft(){ document.getElementById("input").value = '';} function eraseTextright(){ document.getElementById("output").value = '';} function copyleft() { var textarea = document.getElementById("input"); textarea.select(); document.execCommand("copy"); } function copyright() { var textarea = document.getElementById("output"); textarea.select(); document.execCommand("copy"); } function Undoleft() { document.execCommand("undo", true, null); } function Redoleft() { document.execCommand("redo", true, null); } function Undoright() { document.execCommand("undo", false, null); } function Redoright() { document.execCommand("redo", false, null); } function download(FileName) { try { var textToWrite = document.getElementById("input").value; var textFileAsBlob = new Blob([ textToWrite ], { type: 'text/plain' }); var fileNameToSaveAs = FileName; var downloadLink = document.createElement("a"); downloadLink.download = fileNameToSaveAs; downloadLink.innerHTML = "Download File"; if (window.webkitURL != null) { downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob); } else { downloadLink.href = window.URL.createObjectURL(textFileAsBlob); downloadLink.onclick = destroyClickedElement; downloadLink.style.display = "none"; document.body.appendChild(downloadLink); } downloadLink.click(); } catch (err) { console.log(err.message); console.log(document.getElementById("anyError")); document.getElementById("anyError").innerHTML = err.message; } }; function downloadright(FileName) { try { var textToWrite = document.getElementById("output").value; var textFileAsBlob = new Blob([ textToWrite ], { type: 'text/plain' }); var fileNameToSaveAs = FileName; var downloadLink = document.createElement("a"); downloadLink.download = fileNameToSaveAs; downloadLink.innerHTML = "Download File"; if (window.webkitURL != null) { downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob); } else { downloadLink.href = window.URL.createObjectURL(textFileAsBlob); downloadLink.onclick = destroyClickedElement; downloadLink.style.display = "none"; document.body.appendChild(downloadLink); } downloadLink.click(); } catch (err) { console.log(err.message); console.log(document.getElementById("anyError")); document.getElementById("anyError").innerHTML = err.message; } }; function openclick(files, side) { var reader = new FileReader(); reader.onload = (function () { return function (e) { $('#input').val(e.target.result); }; })(files[0]); reader.readAsText(files[0]); }