IPA to X-SAMPA Converter

Convert Unicode IPA symbols to ASCII X-SAMPA equivalents

Free IPA-to-X-SAMPA converter — turn Unicode International Phonetic Alphabet symbols into ASCII X-SAMPA codes for speech tools and text files. Runs in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is X-SAMPA?

X-SAMPA, the Extended Speech Assessment Methods Phonetic Alphabet, is an ASCII-only mapping of the full IPA chart. It lets you write any IPA symbol using ordinary keyboard characters, which is useful in plain-text files and software.

This tool converts Unicode IPA symbols into X-SAMPA, the ASCII encoding of the International Phonetic Alphabet. X-SAMPA was designed so that every IPA character has a keyboard-typeable equivalent, making phonetic data work in plain-text files, databases, and speech-synthesis software that cannot handle Unicode.

Why X-SAMPA exists

The International Phonetic Alphabet uses hundreds of specialized Unicode characters — vowels like ə, ɪ, ʊ, consonants like ʃ, ʒ, ŋ, and diacritics that don’t exist in any standard keyboard layout. Before Unicode was universally supported, and in contexts where it still isn’t (legacy databases, certain speech synthesis engines, command-line phonetic tools, some corpus annotation formats), these characters cause encoding problems.

X-SAMPA (Extended Speech Assessment Methods Phonetic Alphabet) solves this by assigning an ASCII character or short character sequence to every symbol in the full IPA chart. The same sound system is preserved, just using characters you can type on a standard keyboard.

How the converter works

The converter scans your input left to right using a greedy longest-match algorithm: at each position it tries to match the longest known IPA sequence before falling back to shorter matches. This is necessary because IPA uses multi-character units — tie bars connecting two consonants, the length mark ː, affricates like , and diacritics — that must be recognised as a unit before trying their component characters individually.

When a match is found, the IPA token is replaced by its X-SAMPA code. Characters that are written identically in both systems — most basic consonants (p, b, t, d, k, g, m, n, f, v, s, z, h, l, r) and the basic vowels (a, e, i, o, u) — are copied through unchanged.

Common IPA to X-SAMPA mappings

IPAX-SAMPASound example
ə@‘a’ in ‘sofa’
ɪI’i’ in ‘kit’
ʊU’oo’ in ‘foot’
ɛE’e’ in ‘dress’
æ{‘a’ in ‘trap’
ɑA’a’ in ‘father’
ɔO’o’ in ‘thought’
ʌV’u’ in ‘strut’
ʃS’sh’ in ‘ship’
ʒZ’s’ in ‘measure’
ŋN’ng’ in ‘sing’
ðD’th’ in ‘this’
θT’th’ in ‘thin’
ˈPrimary stress mark
ˌ%Secondary stress mark
ː:Length mark

Worked example

The IPA transcription of “hello world”: həˈloʊ wɝld

IPA:    h  ə  ˈ  l  o  ʊ     w  ɝ  l  d
X-SAMPA: h  @  "  l  o  U     w  3` l  d

Result: h@"loU w3ld`

Note how the primary stress mark ˈ becomes ", the schwa ə becomes @, and the r-colored vowel ɝ becomes `3“. The mapping is one-to-one for these symbols, so the companion X-SAMPA-to-IPA converter can reverse the process exactly. Everything runs offline in your browser.