5 Ways to Write in Code - wikiHow (2025)

  • Categories
  • Hobbies and Crafts
  • Games
  • Puzzles and Memory Games
  • Cryptography

Download Article

Explore this Article

methods

Sample Messages

1Manipulating Letter Orientation

2Reversing the Alphabet

3Representing Letters with Symbols

4Learning Advanced Codes

+Show 2 more...

-Show less...

Other Sections

Related Articles

References

Article Summary

Author Info

Last Updated: May 9, 2024Fact Checked

Download Article

Writing in code can be a great way to occupy yourself during those boring moments in class or to send secret messages to your friends. There are multiple different ways to do it, so you can learn a wide variety of different styles. You can have a different code for each friend and each day of the week; once you get the hang of it, writing in codes will be easy!

Sample Messages

Sample Coded Backward Message

Sample Coded Letter Message

Method 1

Method 1 of 4:

Manipulating Letter Orientation

Download Article

  1. 1

    Craft your message normally. Before you start to write in code, you'll need to know what your message is going to be. Depending on how much secrecy you want in your coding, you may not want to share your information with anyone around you. This means that you'll have to be careful that no one surrounding your desk will see your paper, as the code will quickly be broken.

    • If you don't think that you can write your message without it being seen, you can try to visualize it in your head instead. While this can be more difficult, it's best not to be found out by those around you, or your teacher.
  2. 2

    Write your message backwards. This is one of the easiest codes to begin with, especially if you haven't shared coded messages with anyone before.[1]Take your initial message and write it backward, one letter at a time. Start at the bottom right hand corner of the page, so you're moving to the left and up, rather than down and right, like you would normally write. When you're finished with the message, write your punctuation at the end. This will dictate where your message begins and ends.

    • Make sure that you're separating each word in your message, even though they look a little funky and abnormal. If your letters blend together, then the message will be fairly unreadable.

    Advertisement

  3. 3

    Insert a letter and number between each backward letter. If you can without arousing suspicion, write your message on a piece of paper. Proceed to write your message backward, starting from the bottom-right corner of the page and moving to the upper-left. With each letter that you write, insert any number and letter between the letters of your code.

    • There's no exact science to the letters and numbers that you choose, so don't overthink it. "Hello how are you?" would be: "ua3og5ym9 e8lr1sa5h wr3of2ha7 of8lq2lc7ed2ho2".
  4. 4

    Flip your letters. Another fun strategy in writing code is flipping your letters in reverse, so you're left with a strange looking, non-English code. [2]You might want to practice this one before trying it in class. Write a letter in regular handwriting and study its form. You'll start from the right side of the page and move to the left, writing with your left hand. Each letter will be flipped in its form, so you'll be writing backwards while also drawing the shape of the letter in reverse.

    • After you've written your message, hold it up to a mirror. You will see it written in normal English. This is a fairly advanced code and may take some time to master.
    • If you're left handed, this one might be a bit more difficult to learn, but you can still try writing from right to left and mirroring the letters.
  5. Advertisement

Method 2

Method 2 of 4:

Reversing the Alphabet

Download Article

  1. 1

    Make a list of the alphabet. Start your coding by writing out the entire alphabet neatly, giving ample space to write directly below it. You'll be organizing your codes on a single sheet of paper, so you don't want to run out of room. Your alphabet should fit into one uniform row.

  2. 2

    Correlate each letter with its opposite in alphabetical order. [3]Go through the alphabet, after you've written it out in normal order, and write it in reversed order. This means that Z will sit under A, Y under B, X under C, and so on. It's good to write it out completely, as this will help you visualize the entirety of your code.

    • Start to memorize the code, as this will save you time in writing it out in the future. Know that by practicing it, you will grow more comfortable working in the code eventually.
  3. 3

    Compose your message using your reverse alphabet. Using the code as a guide, you'll begin to translate your message into your reversed code. Start by writing out your message in normal English. Below this, you'll use your key to translate this message into the reversed alphabet. The message "HELLO," for example, would be read as "SVOOL."

    • When decoding a message, look at the bottom row of your key and follow to the letter above. The letter above will correlate to the letter in English.
  4. 4

    Learn the half-reversed alphabet.[4]This method, while fairly similar to the reverse alphabet, can save you time in both coding and decoding. It will also save you time in writing out your key. To prepare to write in this code, simply write the letters A through M and then write the rest of the alphabet, N through Z, underneath them.

    • When translating using the half-reversed alphabet, A will equal N, and N will also equal A. It's a two-way correlation, so some people find will find it easier and quicker to assess when translating.
  5. Advertisement

Method 3

Method 3 of 4:

Representing Letters with Symbols

Download Article

  1. 1

    Connect each letter to its numerical equivalent. This code, while fairly straightforward, is an easy way to begin assigning symbols to your alphabet. [5]Write out the alphabet in its standard order. After this, go through and number each letter of the alphabet from 1 to 26 so that A=1, B=2, and complete this pattern.

    • This code, while fairly simple, is also easy to crack. You could try switching it up by reversing the order of the numbers from the beginning (A=26), or by numbering normally for the first half of the alphabet and reversing your numbers when you hit the half-way point, so that N=26, O=25, and so on.
  2. 2

    Dictate in Morse Code. While most people think of Morse Code as a series of sounds and lights, rather than something that can be written, there are shorthand symbols for each letter in the code.[6]Morse Code, named after its inventor Samuel Morse, was used to quickly send messages through telegraphs in the 1830s. Each letter will be composed of a series of dots and dashes. Compose a key of the various correlations and use it as a guide when writing in this code.

    • For advanced coders, there are Morse Code symbols that also represent all forms of punctuation. Try spicing up your messages by writing full sentences, divided by periods, commas, and exclamation points, within your Morse Code.
  3. 3

    Learn hieroglyphics. Invented in Ancient Egypt, hieroglyphics is old system of writing language that combines a more traditional alphabet with symbolic drawings.[7]What's a bit tough about learning hieroglyphics is that it not only relies on letters, but also on sounds. When writing the letter A, for example, you'll have to memorize the symbols for both the long and short vowel sounds.

    • Write out a key that not only includes the letters of the English alphabet, but also the sounds that have been assigned their own symbol in hieroglyphics. You'll see that the shared letters often have the same basic design, and that there are small modifications that correlate to each sound or combination of letters.

    5 Ways to Write in Code - wikiHow (19)

    5 Ways to Write in Code - wikiHow (20)Discover the joy of secret messages. "As a kid, I was obsessed with passing coded notes to my friends, but I only knew basic pig Latin and number-for-letter substitutions. Reading this guide opened up a whole new world — I learned about 10 new ways to secretly encode messages! I had a total blast surprising my buddies by slipping them these complex coded notes. It made me feel like a secret agent or something. It's a super fun way to spark creativity." - Jacoub R.

    5 Ways to Write in Code - wikiHow (21)Reconnect with loved ones through coding. "When I was little, my grandpa taught me Morse code, so it was really nostalgic reading about it in this article. I decided to brush up on it and write him a letter in Morse code. Even though his eyesight is fading, he could still make out the dots and dashes. We had such a good laugh together decoding my letter. It was a great way to bond and bring back fond memories." - Joseph M.

    5 Ways to Write in Code - wikiHow (22)Make math class more exciting. "As a middle school math teacher, I'm always trying to find ways to engage my students more. This article was full of so many cool coding ideas that I can use to liven up lessons on variables, symbols, sequences — all kinds of math concepts! When I assigned some secret message projects, it really boosted the class's interest and comprehension. The kids just light up and can't get enough of it!" - Sophie M.

    5 Ways to Write in Code - wikiHow (23)Have fun with kids through codes. "As a parent, I love doing activities with my kids that we both really enjoy. We had a total blast making up our own secret code and leaving coded messages for each other around the house. It sparked their creativity and brought lots of laughter into our home. This article was such a great source of inspiration for quality bonding time." - Ella S.

    5 Ways to Write in Code - wikiHow (24)Have a story our readers should hear? Share it with 1 billion+ annual wikiHow users. Tell us your story here.

  4. 4

    Invent your own code. While you can certainly use these existing codes, or other codes that exist in the world, it can be fun to create your own. Get together with a friend and assign a symbol to each letter in the alphabet. Keeping these designs fairly simple will be helpful in mastering your own code. It's also very important that you hold onto your key, as you don't want to forget your methods.

  5. Advertisement

Method 4

Method 4 of 4:

Learning Advanced Codes

Download Article

  1. 1

    Alter your language with a sliding scale. A sliding scale, sometimes known as a cryptograph, takes our traditional alphabet and slides it in one direction, giving each letter a newly assigned code letter. The simplest way to do this is to slide the entire alphabet down a single letter. This means that A will be represented by B, B by C, until Z will eventually be represented by A.

    • You can go beyond this single move, however, and slide the alphabet down multiple places. This will make your code more advanced, as a one letter slide can be cracked fairly easily.
    • You can also slide the alphabet backwards. This requires a bit more planning, however, as you'll have to work from the latter side of the alphabet, move past Z, and then start from A.
    • This strategy is also known as "ROT1," which stands for "rotate one letter forward." You can apply this to more advanced scales if you would like. ROT2, for example, would stand for "rotate two letters forward."
  2. 2

    Work with the Block Cipher method. Start by writing out your message in one rectangular block, moving one row at time.[8]You'll want to preplan this a bit, as each row should be as close to even, in its length, as possible. It may not line up perfectly, however. Once you've written out your blocks, move vertically down each column. Each vertical column will be its own word of a nearly equal length, if you've planned your rows evenly.

    • When decoding these messages, write your code words as individual columns again, and you'll be able read the message in row form again.
  3. 3

    Master the Pigpen Code. The Pigpen Code, often referred to as to masonic cipher, is one of the most advanced codes to write within. Make sure that you write it out clearly in an organized fashion, as you'll want to be returning into it when you're writing and decoding these messages.[9]Draw your two major grids. One will look like a tic-tac-toe board, and the other will look like a massive X. You'll fill in the thirteen holes of the two grids with two letters each.

    • Compare the codes for A and J. Both will have the same major shape, but J, because it's the second grid, gets a dot attached to it. This will apply to all of the shared spaces. The first will be plain, and the second has a dot. It may help to write each letter out individually in its code to compare them with each other.
  4. Advertisement

Community Q&A

Search

Add New Question

  • Question

    Isn't reversing the alphabet also known as the Atbash cipher?

    5 Ways to Write in Code - wikiHow (30)

    Community Answer

    Yes. Atbash is a mono-alphabetic substitution cipher originally used to encode the Hebrew alphabet.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 20Helpful 69

  • Question

    Can I simply scramble letters in words to create a code?

    5 Ways to Write in Code - wikiHow (31)

    Community Answer

    Yes, you can do whatever you please. Just remember how to decode it, or you're just left with some wacky thing.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 11Helpful 58

  • Question

    With whom can I communicate in Morse code?

    5 Ways to Write in Code - wikiHow (32)

    Community Answer

    You can use Morse code in communicating with someone who knows it or has a key to decipher it. But be careful: people who you do not want to understand the message may also know Morse code.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 18Helpful 79

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisement

      Tips

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Submit

      Thanks for submitting a tip for review!

      You Might Also Like

      How toDecipher a Secret CodeHow to Invent and Decode Secret Ciphers and Codes
      How toBe a Secret AgentHow toMake Invisible Ink with Baking SodaHow toLearn Morse CodeMorse Code for "I Love You"How toMake Your Own Secret LanguageHow toUse Constrained Writing to Send a Secret MessageHow toMirror WriteHow toCreate Substitution CiphersHow toFold a NoteHow toMake an Invisible Ink PenHow toMake a Code Wheel

      Advertisement

      About This Article

      wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 55 people, some anonymous, worked to edit and improve it over time. This article has been viewed 553,507 times.

      266 votes - 83%

      Co-authors: 55

      Updated: May 9, 2024

      Views:553,507

      Categories: Cryptography

      Article SummaryX

      To write in code, start by writing the message you want to send backward. Then, insert a letter and a number between each of the letters in your original message. To everyone else, your message will look like a bunch of random letters and numbers. But you can read your coded message by writing down each letter that comes directly after a number and then flipping the order of the letters. To learn other ways you can write in code, like reversing the alphabet, keep reading!

      Did this summary help you?

      In other languages

      Spanish

      Russian

      Portuguese

      German

      French

      Indonesian

      Dutch

      Arabic

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 553,507 times.

      Reader Success Stories

      • 5 Ways to Write in Code - wikiHow (44)

        Jacoub R.

        Oct 8, 2016

        "As a kid, I was obsessed with passing coded notes to my friends, but I only knew basic pig Latin and..." more

      More reader storiesHide reader stories

      Did this article help you?

      Advertisement

      5 Ways to Write in Code - wikiHow (2025)

      FAQs

      Can ChatGPT write code for me? ›

      ChatGPT can produce both useful and unusable code. For best results, provide clear and detailed prompts. ChatGPT excels in assisting with specific coding tasks or routines, rather than building complete applications from scratch.

      How to use ChatGPT effectively for coding? ›

      To generate code using ChatGPT, first off all you need to select the programming lanuage such as — Python, Java and JavaScript, and then provide it with a description of the code you want to generate. It should be written in natural language and include the desired functionality of the code snippet.

      What is a secret message written in code? ›

      A cipher is a message written in secret code, usually requiring a key to decipher it. One of the most famous messaging systems with a very well-known key is Morse Code, developed by Samuel F. B. Morse and Alfred Vail in 1838.

      Can professors tell if you use ChatGPT to write code? ›

      The answer is yes. Teachers might not be able to detect ChatGPT-generated text just by reading it because the output can be similar to human writing. However, there are two ways educators can detect AI written text: If a student's submissions vary significantly in style or quality from their usual work.

      Which AI is best for coding? ›

      Snyk. Snyk is an AI-powered security platform that helps developers find and fix vulnerabilities in their code and dependencies. In 2020, Snyk acquired DeepCode, enhancing its capabilities with advanced AI-driven code analysis.

      What is the easiest code to write? ›

      HTML, JavaScript, Python, PHP, and Ruby are considered the easiest programming languages to learn. They have relatively simple syntax and have readymade functions or libraries. This makes it pretty beginner-friendly and one of the most popular programming languages.

      Does ChatGPT make coding easier? ›

      Interestingly, ChatGPT is able to generate code with smaller runtime and memory overheads than at least 50 percent of human solutions to the same LeetCode problems. The researchers also explored the ability of ChatGPT to fix its own coding errors after receiving feedback from LeetCode.

      Is ChatGPT replacing programmers? ›

      At this point, ChatGPT won't be disrupting any field of technology, especially not software engineering. Concern about robots displacing programmers is vastly overstated. There will always be tasks that developers with human cognition can do that machines will never be capable of.

      How many lines of code are in ChatGPT? ›

      The code for Chat GPT (Generative Pre-trained Transformer) is written in Python and consists of around 2000 lines of code.

      Can I use ChatGPT to write for me? ›

      Asking a robot to write your essays for you may seem like an easy way to get ahead in your studies or save some time on assignments. But, outsourcing your work to ChatGPT can negatively impact not just your grades, but your ability to communicate and think critically as well.

      Is ChatGPT actually good at coding? ›

      For example, ChatGPT's ability to produce functional code for “easy” coding problems dropped from 89 percent to 52 percent after 2021. And its ability to generate functional code for “hard” problems dropped from 40 percent to 0.66 percent after this time as well.

      Can I use ChatGPT for my coding assignments? ›

      The short answer is yes; ChatGPT can write codes for you, so if you're into programming, you're welcome to use chatgpt write code.

      Can I use ChatGPT to write a personal statement? ›

      Can I use ChatGPT for my personal statement? Using an AI system like ChatGPT to write your personal statement for you is considered plagiarism. Companies such as the Universities and Colleges Admissions Service (UCAS) have begun taking steps to ensure that AI writing systems are not used to write personal statements.

      References

      Top Articles
      Latest Posts
      Recommended Articles
      Article information

      Author: Neely Ledner

      Last Updated:

      Views: 5589

      Rating: 4.1 / 5 (62 voted)

      Reviews: 85% of readers found this page helpful

      Author information

      Name: Neely Ledner

      Birthday: 1998-06-09

      Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

      Phone: +2433516856029

      Job: Central Legal Facilitator

      Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

      Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.