Pig Latin converter
Turn English into Pig Latin — vowel-initial words get "way", consonant clusters move to the end with "ay", case and punctuation are preserved, and a best-effort decoder turns it back.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Input
Options
Punctuation, digits, spaces and Chinese characters pass through untouched — only Latin words are rewritten. Everything runs locally in the browser.
Vowel-initial words take "way" (egg → eggway); consonant-initial words move the leading cluster to the end and add "ay" (pig → igpay, trash → ashtray). Case travels with the letters.
Result
Type some text to see the conversion.
What this tool does
- Play a secret-language game: convert a whole paragraph and it is unreadable to anyone who does not know the rules.
- Teach consonant clusters to kids — Pig Latin moves the leading cluster to the end of the word, which makes the concept very tangible.
- Got a string of Pig Latin you cannot read? Switch to the reverse mode and the way / ay endings are restored as far as possible.
- Inventing fun copy or a pet name: running an ordinary word through Pig Latin often produces something surprisingly cute.
Example
Input
Hello pig!
Output
elloHay igpay!
Hello starts with the consonant H, which moves to the end with its capital letter; pig becomes igpay. Switch to reverse mode and elloHay igpay! comes back as Hello pig!.
Frequently asked questions
What are the actual Pig Latin rules?
Two of them: vowel-initial words (a e i o u) simply take "way", so egg → eggway; consonant-initial words move the leading consonant cluster to the end and add "ay", so pig → igpay and trash → ashtray. This tool also preserves case and punctuation.
Why is the reverse conversion sometimes wrong?
Pig Latin is not uniquely decodable. Once trash becomes ashtray there is no way to tell how many letters the moved cluster had, and world becomes orldway, which collides with the "vowel-initial + way" pattern. The tool returns its best guess — use the context to decide.
Is capitalisation preserved?
Yes. The moved letters keep their original case, so Hello → elloHay and decoding gives Hello back. Fully uppercase words behave the same way.
Do Chinese text, digits and punctuation get rewritten?
No. Only runs of Latin letters are treated as words; Chinese characters, digits, spaces and punctuation pass through unchanged, so mixed-language sentences are safe.
Is y a vowel here?
Following most Pig Latin tutorials, y counts as a consonant, so my → ymay and yellow → ellowyay. If you prefer treating y as a vowel, adjust words that start with y by hand.
Keywords:pig latinpig latin translatorpig latin converterpig latin decodersecret language猪拉丁语Pig Latin 转换英文趣味编码儿童密语反向还原