LogoGuruTrans
Pricing
LogoGuruTrans

GuruTrans provides advanced AI-powered tools for seamless language conversion. Translate texts, slang, and even ancient languages effortlessly with GuruTrans.

Company
AboutRefund PolicyPrivacy PolicyTerms of ServiceContact
support@gurutrans.app
Language Translator
  • American British English Translator
  • Albanian To English
  • Baybayin Translator
  • Cantonese Translator
  • Chinese To English Translator
  • English To Chinese Translator
  • Creole To English Translator
  • Cuneiform Translator
  • English To Amharic Translator
  • English To Persian Translator
  • English To Polish Translator
  • English To Swahili Translator
  • English To Turkish Translator
  • Esperanto Translator
  • Greek Translator
  • Haitian Creole Translator
  • Japanese To English Translator
  • Manga Translator
  • Nahuatl Translator
  • Ogham Translator
  • Samoan To English Translator
  • Swahili To English Translator
  • Telugu To English Translator
  • Jamaican Translator
  • Patois Translator
  • Italian To English Translator
  • Icelandic To English Translator
  • English To Samoan Translator
  • Bosnian To English Translator
  • Igbo To English Translator
  • Haitian To English Translator
  • Hmong To English Translator
  • Khmer To English Translator
  • Marshallese Translator
  • Yoruba To English Translator
  • English To Twi Translator
  • Danish To English Translator
  • Arabizi Arabic Translator
  • English To Somali Translator
  • Hanzi To Pinyin Converter
  • Japanese To Romaji Translator
  • Hangul To Romanization Converter
  • Hindi Transliteration Converter
  • English To Oromo Translator
  • English To Pashto Translator
  • English To Nepali Translator
  • Legalese to Plain English Translator
  • Medical Jargon Translator
Old English Translator
  • Old English Translator
  • Ancient Greek Translator
  • Old Norse Translator
  • Aramaic Translator
  • English To Latin Translator
  • Old Saxon Translator
  • Old Frisian Translator
  • Sumerian Translator
  • Middle English Translator
  • Shakespearean Translator
  • Fancy English Translator
  • Pirate Translator
Slang Translator
  • Ferb Latin Translator
  • Ubbi Dubbi Translator
  • Swedish Chef Translator
  • Elmer Fudd Translator
  • Valley Girl Translator
  • Gen Z Translator
  • Gen Alpha Translator
  • Pig Latin Translator
  • Gibberish Translator
  • Dumb It Down
  • Bad Translator
  • Verbose Generator
  • Zalgo Text Generator
  • Australian Slang Translator
  • Cockney Rhyming Slang Translator
  • English to Emoji Translator
Code Translator
  • Caesar Cipher Translator
  • ROT13 Translator
  • Tap Code Translator
  • Bacon Cipher Translator
  • Polybius Square Translator
  • Vigenere Cipher Translator
  • Rail Fence Cipher Translator
  • Playfair Cipher Translator
  • Affine Cipher Translator
  • T9 Translator
  • Subtitle Translator
  • Image Translator
  • PDF Translator
  • Word Translator
  • Excel Translator
  • PowerPoint Translator
  • EPUB Translator
  • JSON Translator
  • Markdown Translator
  • CSV Translator
  • ASCII Translator
  • Backwards Translator
  • Binary Translator
  • Braille Translator
  • IVR Translator
  • Morse Code Translator
  • Numbers To Letters
  • Wingdings Translator
  • Furry Translator
  • Demonic Language Translator
  • Infernal Translator
  • Tumblr Fonts Generator
  • R'lyehian Translator
  • Irish Accent Translator
  • Sideways Text Generator
  • Cowboy Translator
  • Demon Language Translator
  • Ganglish Translator
  • Ancient Language Translator
  • Goblin Translator
  • Enochian Translator
  • Broken English Translator
  • Huttese Translator
  • Sylvan Translator
  • Bold Text Generator
  • Slang Translator
  • Dothraki Translator
  • Spamton Text Generator
  • Cat Translator
  • Fortnite Fonts Generator
  • Freaky Text Generator
  • Small Caps Generator
  • Cool Letters Generator
  • Aurebesh Translator
  • Redacted Text Translator
  • Medieval Translator
  • Typewriter Font Generator
  • Unicode Lookalikes Converter
  • Al Bhed Translator
  • Words to Numbers Converter
  • Numbers to Words Converter
  • Toki Pona Translator
  • Elder Futhark Translator
  • Anglish Translator
  • British Accent Translator
  • Parseltongue Translator
  • Atbash Translator
  • Trigedasleng Translator
  • Tiny Text Generator
  • Cursive Text Generator
  • Italic Text Generator
  • Fancy Letters Generator
  • Creepy Text Generator
  • English to Hieroglyphics Translator
  • Glitch Text Generator
  • Enchantment Table Translator
  • Cursed Text Generator
  • Standard Galactic Alphabet Translator
  • Facebook Fonts Generator
  • Superscript Generator
  • Weird Text Generator
  • Minecraft Enchantment Table Translator
  • Small Text Generator
  • Subscript Generator
  • Fancy Text Generator
  • Scottish Translator
  • Discord Fonts Generator
  • Mirror Text Generator
  • TikTok Font Generator
  • Extra Thicc Text Generator
  • Early Modern English Translator
  • Vaporwave Text Generator
  • Cool Text Fonts Generator
  • Enderman Language Translator
  • Redacted Text Generator
  • Russian Accent Translator
  • Hacker Text Generator
  • Southern Accent Translator
  • Uwu Translator
  • Na'vi Translator
  • Symbol Translator
  • Full Width Text Generator
  • Demonic Font Generator
  • Newspeak Translator
  • Pidgin Translator
  • Black Speech Translator
  • Simlish Translator
  • Hacker Font Generator
  • English To Ipa Translator
  • NATO Phonetic Alphabet Translator
  • Pigpen Cipher Translator
  • Semaphore Translator
  • Text to Hex Converter
  • Base64 Encoder Decoder
Fictional Languages
  • Klingon Translator
  • Vulcan Translator
  • Sith Translator
  • Gungan Translator
  • High Valyrian Translator
  • Mandalorian Translator
  • Minion Translator
  • Yoda Translator
  • Alien Text Generator
  • Drow Translator
  • Gaster Translator
  • Rune Translator
  • Runic Translator
  • Elvish Translator
© 2026 GuruTrans All Rights Reserved.

Affine Cipher Translator

Encrypt or decrypt text with the affine cipher using a and b modulo 26. Requires a coprime to 26 and preserves letter case and punctuation.

0 / 10,000 characters

Examples

Each example lists a, b, direction, and notes. Outputs are deterministic for the given parameters; punctuation and case are preserved where shown.

English

HELLO

Translation

RCLLA

Forward conversion with default settings

English

WORLD

Translation

OAPLX

Forward conversion with default settings

English

GOOD DAY

Translation

MAAX XIY

Forward conversion with default settings

English

SECRET

Translation

UCSPCZ

Forward conversion with default settings

English

MEET ME

Translation

QCCZ QC

Forward conversion with default settings

English

FRIEND

Translation

HPWCVX

Forward conversion with default settings

Understand this tool

Why coprime matters

An affine cipher is only reversible when a is coprime to 26. If a shares a factor with 26, two different plaintext letters can encrypt to the same ciphertext letter, so the original text cannot be recovered uniquely. The tool rejects such values.

Try Affine Cipher Translator Now
Why coprime matters

Case and punctuation

The tool applies the affine map only to letters. Uppercase and lowercase letters are transformed separately, so case is preserved. Spaces, punctuation, digits, and symbols pass through unchanged. This makes short messages easier to read and avoids losing formatting.

Try Affine Cipher Translator Now
Case and punctuation

Reference guide

InputRuleResult
a = 5gcd(5, 26) = 1Valid
a = 2gcd(2, 26) = 2Not valid
a = 13gcd(13, 26) = 13Not valid

Valid multipliers a

For the affine cipher to be reversible, a must be coprime to 26, meaning gcd(a,26)=1. The valid values are 1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, and 25. Other values cause collisions, so different plaintext letters can map to the same ciphertext letter.

Encryption and decryption formulas

Encryption maps a letter value x to (a x + b) mod 26. Decryption uses the modular inverse of a modulo 26, written a⁻¹, and maps y to a⁻¹ (y − b) mod 26. For a = 5, the inverse is 21 because 5 × 21 = 105 ≡ 1 mod 26.

InputRuleResult
HELLOa = 3, b = 7, encryptCTOOX
CTOOXa = 3, b = 7, decryptHELLO
IHHWVCa = 5, b = 8, decryptAFFINE

Ways to use this tool

Solve affine cipher puzzles

When a puzzle gives a ciphertext and hints like a = 5, b = 8, enter the text and choose decrypt. The tool maps each letter back to plaintext while leaving spaces and punctuation in place, so you can read the original message without manual table lookups.

Try Affine Cipher Translator Now
Solve affine cipher puzzles

Teach modular arithmetic

Show how encryption uses (a x + b) mod 26 and decryption uses a modular inverse. Change a and b to demonstrate valid and invalid multipliers. Students can see immediately why a must be coprime to 26 and how case and punctuation survive the mapping.

Try Affine Cipher Translator Now
Teach modular arithmetic

Encode short messages for fun

Turn a short phrase into an affine cipher before sharing it with a friend who knows the a and b values. Because the tool preserves spaces and punctuation, the result stays readable as a puzzle. It works locally, so no text leaves your browser.

Try Affine Cipher Translator Now
Encode short messages for fun

Check cipher parameters

Before using a set of a and b values in code or a puzzle, test them here. Enter sample text such as ABC and see the mapping. If a is not coprime to 26, the tool reports an error instead of producing ambiguous output.

Try Affine Cipher Translator Now
Check cipher parameters

What you can do

Explore the Affine Cipher Translator features and supported options.

Encrypt and decrypt locally

Enter text, choose a and b, and select encrypt or decrypt. The affine map runs in your browser with modulo 26 arithmetic. No login, credits, or network request is needed for this local tool.

Validate a automatically

The tool checks whether a is coprime to 26 before transforming text. Valid values include 1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, and 25. Invalid values produce a clear error message.

Preserve case and punctuation

Letters are shifted according to their alphabet position, with uppercase and lowercase handled separately. Spaces, commas, periods, digits, and other non-letter characters remain unchanged, so the output keeps the original layout and readable structure.

Use copy, download, and reset

After generating a result, use the copy button to place it on your clipboard, download it as a text file, load the sample to see how the cipher works, or reset the fields to start a new message.

Frequently asked questions

Related tools

Caesar Cipher Translator

Shift letters by 0–25 positions; preserve case and punctuation.

ROT13 Translator

Apply the reversible 13-position Latin letter substitution.

Tap Code Translator

Use the 5×5 C/K merged grid. Encode letters as row.column pairs with / between words; decode dot-tap pairs or coordinates.

Bacon Cipher Translator

Use five A/B symbols per letter; select modern 26-letter or historical 24-letter I/J and U/V merged alphabet.

How to use this tool

Step 1: Choose a and b

Pick a multiplier a that is coprime to 26, such as 5 or 11. Choose any integer for b, including 0. These parameters define the mapping (a x + b) mod 26 for encryption or its inverse for decryption.

Step 2: Enter text and select mode

Type or paste your message into the input field. Select encrypt or decrypt. The tool preserves case and punctuation automatically, so you do not need to strip spaces or symbols before running the cipher.

Step 3: Copy, download, or reset

Click translate to see the result. Use copy to place it on your clipboard or download to save it as a text file. Press example to load a sample, or reset to clear the fields and start again.

Try this tool

Encrypt or decrypt with your own a and b values. Runs locally in your browser.