We have two tools on this page, a HTML Encoder and a Text Escape tool (located at the bottom of the page). The first tool will encode html and is a way to hide html text from prying eyes. Our HTML Encoder is an online tool that converts HTML code into a JavaScript Unicode string which means the text looks scrambled when your source code is viewed, but when executed as a web page, appears to be normal.
When you encode text, you are not protecting your HTML code, but it does do a great job as a deterrent to those that would otherwise attempt to view your code in passing. Chances are, they’ll just move on.
To get started encoding, simply enter your text or html code you wish to encode (or the url encoded text) in the box below, press the process button and you’ll instantly see the results. To finish, simply cut and paste the new code into the spot where the original code would was and save your changes.
HTML Encoder Decoder
When decoding, enter the entire code including the script tags. Below is an example of encoded text, if you enter this in the top box and press ‘process’, you will see? Try it and find out what it says:)
<script type=”text/javascript”>document.write(‘\u0048\u0069\u0021’);</script>
Encode HTML
Enter the text to encode or the encoded text you want decoded below:
There are two boxes below, one for the text and one for the output. You can enter plain text into the encoder and you'll see the output below with javascript tags ready to be inserted into your web page. The output of text will be encoded.
Decode Text
If you find text that you would like to decode, simply paste it into the first box and 'click process'. You will see the decoded text appear in the box below.
Encoded Text
In the bottom box is javascript code that you put in place of the text you wanted encoded. When a browser runs the script, it will display your hidden text but if someone tries to view the source, it will not be easily read. The text below is what a human would see if they tried to view your text.
Escape Text
Below, you'll find a great tool to help you escape text. This tool will look for any special characters and escape them - escaped text or escaped html is often required by programs such as Google, Yahoo and MSN.
To unescape text, simply copy the escaped text into the top box below and press 'UnEscape' and the results of the second box will be unescaped.
Hey what’s wrong… I can’t decode my code ?? :|
how to decode this
document.write(“”);
This is amazing!
but is there something that could change it back into what it was before?
like converting it back or something?
is there a desktop version?
Great tools…you should add a donation link e.g. paypal etc. Your site is definately the best and neatly done.
would be cool if you could do one that decodes streams from sites like atdhe
very useful for javascript accent
Great tool, simple and exactly what I was looking for. Thank you! You’re in my “geek tools” bookmarks now.
Hi,
Encoding works great — however, decoding just re-encodes! (I’ve tried my encoded sample and the sample provided on your page).
It would be great if you could fix it, I, err, need to decode my code to change it a bit!! ;)
…it’s great for encoding html inside googlemaps infoWindows so that they valdate!
Hi Augusta,
That is a false positive from your antivirus software, and why it does that I’m guessing is it doesn’t decode it. The antivirus software sees that it’s executable code and figures better to issue a warning than nothing at all. I have encoded content on a site that AVG flagged as questionable, but other packages didn’t have a problem with it, and more importantly, it’s index and doing well in Google (so Google doesn’t have a problem with it either).
What antivirus are you using that is flagging the encoded html?
Hey!!
After i’m encode my html sourecode and paste to my page
then i’m previwe that page, my virus protection it alert and say
“this page has a virus or dengerus page” .
why?
Awesome decoder!!!, i have implemented this to all my pages in my site, thanks!