Skip to content
Captcha OCR

Alphanumeric captcha solver

Mixed codes such as K7M2XP. Tell the decoder which cases and whether digits appear, and the length when the site always draws the same count. A word with no digits is the word solver.

Alphanumeric captcha reading K7M2XP

Request

Replace the sample options with {"uppercase": true, "numeric": true, "length": 6}, or lowercase if that is what the image uses.

curl -s https://captchaocr.allvoraz.com/v1/solve \
  -H "Authorization: Bearer $CAPTCHA_API_KEY" \
  -H 'Content-Type: application/json' \
  -d "{\"image\": \"$(base64 < captcha.png | tr -d '\n')\", \"numeric\": true, \"length\": 6}"

Check reliable before you submit the form. A low-confidence read is free. The measured text-captcha numbers are on the accuracy page. Start with 5,000 credits and compare against captchas you can see yourself.

Case-sensitive codesbeta

When the form checks case (aB3kQ7 is not AB3KQ7), leave out uppercase and lowercase. The engine then returns the case it read. Letters that look the same in both cases, such as c, o, s, v, w, x and z, are the usual errors, so add length if you know it.

Codes with symbolsbeta

Some captchas mix in punctuation, such as k#7@Q2. Send {"symbols": true} to allow + - * / = ? . , : ; ' " ! | _ ( ) [ ] { } < > @ # $ % ^ & ~ \. Full-width and curly forms come back as the plain ASCII character. symbols cannot be combined with math or a non-Latin script.

CaptchaExampleCorrectRight when reliable
Case-sensitive textaB3kQ7, no hints; fonts not used in training80.0%87.7%
Text with symbolsk#7@Q2; fonts not used in training80.3%87.8%

300 fresh synthetic captchas per row, scored end to end through the solver. No live captchas of this kind have been measured yet, so treat these as an upper bound for clean images. Test on your own site first.

Which flags?

uppercase and numeric together, plus length when the code is always the same size. Example: {"uppercase": true, "numeric": true, "length": 6} for K7M2XP.

What happens to O and 0?

With numeric set, letters that look like digits fold into digits only where that rule applies. If the site really uses both O and 0, do not force numeric, or you will erase the letter.

Is this a different model from words?

Letters and words share the text engine. Mixed case and symbols also consult the Latin text model, and the general reader is used when it is surer, and for digit-only or single-case codes. math: true switches to the arithmetic model and is the wrong flag here.

How was it measured?

465 text captchas from 46 public-sector websites agreed with a human check 88.0% of the time, and 88.6% when length or numeric was set. Details are on the accuracy page.