Can AI solve CAPTCHAs?

Basic3 min readUpdated

GET /learn/captcha/can-ai-solve-captchas/ Accept text/html text/markdown

Short answer

Yes. Machine learning models read distorted text and pick objects in image grids as well as people do, and published research has solved every reCAPTCHA v2 image challenge it was given. What still slows bots down is the hidden part of modern challenges: checks on the browser, the network and behaviour, which a model cannot pass just by answering the puzzle.

CAPTCHA was designed as a bet. In their 2003 paper the Carnegie Mellon authors proposed building tests from problems AI could not yet solve, so that either the test kept bots out or breaking it would advance AI. Both halves came true in turn. In 2013 a Google team reported 99.8% accuracy on the hardest category of reCAPTCHA text puzzles, using a model built to read house numbers in Street View photos (Goodfellow et al.). In 2024 researchers at ETH Zurich solved 100% of the reCAPTCHA v2 image challenges they attempted, and found no significant difference between the number of challenges humans and their bot needed to pass (Plesner, Vontobel and Wattenhofer).

How do AI models solve CAPTCHAs?

  • Distorted text. Optical character recognition models trained on warped characters read them reliably. Training data is cheap, because anyone can generate millions of synthetic CAPTCHA images with known answers.
  • Image grids. Object detection models find the traffic lights, buses or crosswalks in each tile. The ETH Zurich study used YOLO models, a widely used family of open object detectors.
  • Audio. Speech recognition transcribes spoken digits and words. Audio is the fallback for visitors who cannot see the image, so it has to stay easy enough for people, which also keeps it easy for machines.
  • Sliders and rotation puzzles. Computer vision finds the gap or the angle, and the script moves the pointer.
  • Anything new. Multimodal language models can read an instruction such as "select all squares with bicycles" and act on the image without being trained for that exact puzzle.

When models fail on a new puzzle type, bots send it to human solving farms instead. How CAPTCHA solving services work covers that route.

Why do modern CAPTCHAs look at more than the answer?

The answer is cheap to produce, and current designs reflect that. The ETH Zurich paper found that reCAPTCHA v2 relies heavily on cookies and browser history to decide whether a visitor is human. reCAPTCHA v3 has no puzzle at all and returns a score. Cloudflare Turnstile shows no images and decides from browser checks.

So a current CAPTCHA is mostly bot detection carried out at one moment. A model that can read every puzzle still has to run inside an environment that looks like an ordinary browser on an ordinary network. Headless browsers, data centre IP addresses, browser properties that contradict the User-Agent and many accounts sharing one device fingerprint still stand out. Headless browser detection explains the signals.

How do AI agents deal with CAPTCHAs?

Browser agents, AI systems that operate a web browser for a user, add a new kind of visitor. Some are built to stop and ask the user to take over at a CAPTCHA or a login page. Others try to solve the challenge or route it to a person.

OpenAI's GPT-4 system card describes a test run by the Alignment Research Center in which the model messaged a TaskRabbit worker to solve a CAPTCHA for it. When the worker asked whether it was a robot, the model said it had a vision impairment (GPT-4 system card).

For site owners this means a CAPTCHA blocks the agents that behave well and stop, while agents that pay or solve get through. Decide first whether you want agent traffic on a given page, then identify and handle it on that basis. AI agents vs bots covers the options.

What should you do instead of a harder puzzle?

Harder puzzles hurt people before they hurt bots: every step up in difficulty fails more real visitors, while models keep improving. Put the weight on checks that a model cannot answer its way past:

  • Verify every token on the server and check its hostname, action, age and single use.
  • Compare the network layer with the browser's claims. A TLS fingerprint, a hash of how the client opens an encrypted connection, that does not match the claimed browser is a strong sign of automation. See TLS fingerprinting with JA3 and JA4.
  • Count attempts per account, device and IP range, and slow down or block bursts.
  • Ask for a stronger step only on risky actions: email confirmation at signup, passkeys or one-time codes at login, payment authentication at checkout.
  • Treat declared AI agents and crawlers as their own category, with an allow, limit or block decision per path.

Common questions

Does CAPTCHA work against AI?

The puzzle itself does little against current models. The checks around it still add cost, because an AI agent has to run in a browser and on a network that pass the vendor's risk checks, and modern CAPTCHA services put most of their weight there.

Can CAPTCHA be automated?

Yes. Bots automate CAPTCHAs with their own models or by sending them to a solving service that returns a token. Tokens expire within minutes and work only once, so bots cannot stockpile them and have to solve on demand, one token per protected request.

Can AI agents like ChatGPT get past CAPTCHAs?

Some browser agents can click checkbox challenges or read image puzzles, and some products are built to stop and hand control back to the user instead. Whether an agent gets through depends more on how its browser and network look to the vendor than on its ability to read the image.