QWERTY Shift Cipher
Enter your text and a shift amount to encode or decode.
Result
How it is calculated
The keyboard's three letter rows are treated as three separate circles: qwertyuiop (10 keys), asdfghjkl (9 keys) and zxcvbnm (7 keys). To encode, every letter moves shift places to the right inside its own row, and when it runs past the end it wraps to the start: new position = (position + shift) mod row length. To decode, the shift is applied in the opposite direction, so decoding with the same number restores the text. Entering a negative shift when encoding has the same effect as decoding.
Because the rows have different lengths, a shift of 10 returns the top row to where it started but still moves the other two. Upper and lower case are kept. Anything that is not one of the 26 basic letters (spaces, digits, punctuation, accented or Turkish characters such as ş or ğ) is passed through unchanged. A decimal shift is rounded to a whole number. The output also reports the character count and the shift used (shown negative when decoding). This is a puzzle cipher with few possible keys, not real security.
Worked example
Encode "Hello World" with a shift of 3. H sits in the middle row (a s d f g h j k l); 3 places on is l. E is in the top row (q w e r t y); 3 on is y. The first l is 9th in the middle row, so it wraps around to d, and o, 9th in the top row, wraps to w. The result is Lyddw Twudh, 11 chars, with the space kept. Decoding "Lyddw Twudh" with the same shift of 3 gives "Hello World" back.
Common mistakes
- Choosing decode and also entering a negative shift. Decode already reverses the direction, so enter the original positive shift. Two reversals cancel out and you encode again.
- Expecting a letter to move to another row. Each letter stays in its own row, so q can become p but never a.
- Expecting digits, punctuation or accented letters to be changed. They are copied as they are, so text with ş or ğ is only partly encoded.
- Assuming a shift of 26 (as in a Caesar cipher) returns the text. Row lengths are 10, 9 and 7, so a full cycle happens at different shifts for each row.
- Using it for secrets. Few possible shifts and the fixed rows make it trivial to break.
About this calculator
This cipher works like a Caesar shift, but instead of moving letters along the standard alphabet, it moves them along the physical rows of a QWERTY keyboard — so “Q” might shift to “W”, “W” to “E”, and so on, wrapping back to the start of the row when it runs off the end. Each of the three letter rows (QWERTYUIOP, ASDFGHJKL, ZXCVBNM) is treated as its own closed loop.
It's a lightweight, keyboard-aware twist on classic substitution ciphers, popular in puzzle hunts, coding challenges, and cryptography classroom exercises as an easy way to introduce shift-cipher logic using something more visual and tactile than the alphabet — you can literally see the shift happening across your own keyboard.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
Row lengths of 10, 9 and 7 mean the shifts only repeat after 630 places, but this is a puzzle, not security: each letter stays in its own row, and digits and punctuation pass through untouched, so Hello, 2024! becomes Jraap, 2024! with a shift of 1. Also note that a shift of 10 leaves the top row unchanged while still moving the other two. What kind of puzzle are you building with it?