X-SAMPA to IPA Converter

Convert ASCII X-SAMPA phonetic notation back into Unicode IPA symbols

Convert ASCII-only X-SAMPA phonetic transcription into proper Unicode IPA. Maps every standard X-SAMPA code — vowels, consonants, clicks, implosives, stress and length marks — to its International Phonetic Alphabet equivalent, longest tokens first. Runs entirely in your browser.

What is X-SAMPA?

X-SAMPA (Extended Speech Assessment Methods Phonetic Alphabet) is an ASCII-only encoding of the IPA created so phonetic transcriptions can be typed and transmitted with a plain keyboard. Each IPA symbol has a unique ASCII code, such as A for the open back vowel and S for the postalveolar fricative.

Convert X-SAMPA to IPA

X-SAMPA is a clever workaround for a real problem: the International Phonetic Alphabet (IPA) uses hundreds of special Unicode characters that are awkward to type. X-SAMPA re-encodes every one of those symbols as plain ASCII so linguists can transcribe speech on an ordinary keyboard. This tool reverses that encoding, turning an X-SAMPA string back into the proper Unicode IPA symbols.

How it works

The converter scans your input left to right and, at each position, tries to match the longest X-SAMPA token in its lookup table before falling back to shorter ones. This greedy, longest-first matching is essential because many codes share a prefix:

r\`   → ɻ   (retroflex approximant)
r\    → ɹ   (alveolar approximant)
r`    → ɽ   (retroflex flap)
r     → r   (alveolar trill, unchanged)

If no multi-character token matches at the current position, the single character is checked; if it still isn’t in the table it is passed through unchanged, because ASCII letters like p, t, s and the vowels a e i o u already mean the same thing in both systems. Stress marks (" → ˈ, % → ˌ) and length marks (: → ː, :\ → ˑ) are mapped the same way.

Example and notes

The X-SAMPA string h@"loU wr3ldconverts tohəˈloʊ wrɝld, recognising @as schwa,as primary stress,oUas the diphthong, and3“ as the rhotic vowel. Because the table covers clicks (O\ → ʘ, |\ → ǀ) and implosives (b_< → ɓ, g_< → ɠ) as well, it handles transcriptions from a wide range of languages, not just English. For the reverse direction, use the companion IPA-to-X-SAMPA converter.