What is alphanumeric text?

Alphanumeric text is made of letters and digits only, with no spaces, punctuation, symbols or emoji. In English, that means the letters A to Z, in capitals or small letters, and the digits 0 to 9, so Garden42 is alphanumeric and Garden 42 isn't. Text with only letters or only digits counts too.

Usernames, product codes, order numbers, voucher codes and file names are often limited to letters and digits, because such text travels safely through web addresses, databases and older systems.

Tool description

Type or paste text into the Text box, and the result shows as you type: "The text contains only letters and digits." or "The text contains characters other than letters and digits." Every character counts, spaces and line breaks included, so even a space left at the end after pasting makes the text fail.

The Alphabet menu sets which letters and digits count. It starts on the alphabet of the language you're reading the page in, where the list has it, and offers dozens of others. Characters to ignore starts empty. Characters you type there may appear anywhere without making the text fail: an underscore and a hyphen allow my-cool_name42, and a space allows Room 101.

What passes and what fails

With an English alphabet:

  • Garden42, abc and 2024 pass
  • Room 101, user_name, 12.5 and -5 fail: spaces, underscores, dots and minus signs are neither letters nor digits
  • Accented letters fail, as in café2, and so do letters of other scripts and digits in other forms, such as 123, ١٢٣, ² and ½
  • In most alphabets, text over several lines fails, as the one-line Characters to ignore field can't hold a line break

How the alphabets differ

  • Other Latin-script languages add their own letters, such as ß in German or ł in Polish.
  • Arabic and Persian also take their own digits, and Japanese takes full-width digits such as 123, along with hiragana, katakana and kanji, but no Latin letters.
  • Thai takes only Thai digits, not 0 to 9, and counts spaces and line breaks as letters.
  • Greek leaves out ό, ύ and ώ, so καλός fails here, while the Letters Only Checker accepts it.

Good to know

  • The check looks at the characters only: a code made of the right characters may still not exist.
  • To allow exactly the characters you list, use the Allowed Characters Checker.

Features

  • Checks for letters and digits only
  • Dozens of alphabets, from German and Russian to Arabic and Thai
  • Characters to ignore, such as underscores, hyphens or spaces
  • Results as you type, with no button to press
  • Runs in your browser, so nothing you type is sent anywhere