How to Encode & Decode Messages

by Kevin Lee

Computers make it possible for anyone to encode and decode text at the push of a button. Explore the fascinating world of cryptology by encoding your own text and messages online for free. Send secret messages to friends or simply encode text you would like to keep private on your computer.



Launch your browser and navigate to the Fourmilab website. This site is used to encode JavaScript files, but it can also encrypt regular text.


Scroll down to the yellow text box and click "Generate." The site generates a random encryption key. Copy that key and save it.


Type the text you wish to encode in the green text box and click "Encrypt." The site encodes your text and places it in the yellow text box near the bottom of the page.


The coded text appears in a yellow text box. It will look similar to the text shown below:


To decrypt the text, click "Decrypt."

Use Script Asylum


Visit the Script Asylum website. This site also allows users to encode HTML, JavaScript and text.


Find the "Normal Text/HTML/JavaScript" text box and delete its contents.


Type the text you wish to encode into that text box and click the "->" button. The site encodes the text and displays it in the "Encoded Text/HTML/JavaScript" text box. That text might appear as shown below:


Click the "<-" arrow to decode the text.

Use Infoencrypt


Go to the Infoencrypt website and find the "Password" text box.


Type a password you would like to use to encrypt your text into that text box. Retype the password in the "Confirm Password" text box.


Type the text you want to encode into the "Message to Encrypt or Decrypt" text box and click "Encrypt." The site encodes the text. That text will look similar to the text shown below:


The text between the two "Encrypted" tags is your encoded text. Copy that text and save it. To decrypt your text, clear the "Message to Encrypt or Decrypt" text box and paste your text into the text box. Click "Decrypt" to decode the text.


  • check If you email someone encoded text, send them the URL of the site you used to encode the text along with any key or password you used to encrypt the text. They can visit the site and decrypt your message.

About the Author

After majoring in physics, Kevin Lee began writing professionally in 1989 when, as a software developer, he also created technical articles for the Johnson Space Center. Today this urban Texas cowboy continues to crank out high-quality software as well as non-technical articles covering a multitude of diverse topics ranging from gaming to current affairs.

Photo Credits

  • photo_camera Thinkstock Images/Comstock/Getty Images