CAPTCHA Guide Security

What Is a CAPTCHA? Definition, Types and How It Works

A CAPTCHA is a test that tells humans and bots apart before a form goes through. What CAPTCHA means, how challenge and response work, and the main types.

Published Jan 30, 2026 · 8 min read · Updated Oct 10, 2026

Key takeaways

A test that tells humans and bots apart
A CAPTCHA is an automated test that checks whether a visitor is a person or a bot. Websites put it on signup, login, contact and checkout forms to stop spam, fake accounts and password attacks.
Challenge, response, server check
The CAPTCHA sets a challenge, the visitor or the browser sends back a response, and your server checks that response with the provider before the request goes through.
Puzzles cost conversions and accessibility
Distorted text and image grids stop simple bots, but they slow people down and shut out visitors who cannot see or read them well.
Modern CAPTCHAs run in the background
Proof-of-work and bot scoring check visitors without a visible task. TrustCaptcha works this way, uses no cookies and processes data in EU data centers.
On this page
  1. What is a CAPTCHA?
  2. What is a CAPTCHA challenge?
  3. What is a CAPTCHA challenge response?
  4. What is a CAPTCHA code?
  5. What is a CAPTCHA test?
  6. What does CAPTCHA mean?
  7. How does a CAPTCHA work?
  8. Types of CAPTCHA
  9. What CAPTCHAs protect against
  10. Limitations of traditional CAPTCHAs
  11. How to choose a CAPTCHA
  12. TrustCaptcha: an invisible CAPTCHA from the EU
  13. Try TrustCaptcha
Share this post

What is a CAPTCHA?

A CAPTCHA is an automated test that tells a human visitor from a bot. It sits on the forms bots like to abuse (signup, login, contact, checkout) and lets a request through only after the visitor, or the visitor’s browser, has passed it.

You have met plenty of them: a string of warped letters to type, a grid of photos with traffic lights, a checkbox that says “I’m not a robot”. The newer ones you never notice, because they run in the background while you fill in the form.

The reason they exist is economic. A bot that creates ten thousand fake accounts or tries a million stolen passwords only pays off if each attempt costs almost nothing. A CAPTCHA puts a price on every attempt, and at scale that price breaks the attack.

What is a CAPTCHA challenge?

A CAPTCHA challenge is the task the CAPTCHA sets before a request goes through. It can be an image grid to click through, a checkbox, distorted text to type, or a computation that the browser solves without the visitor seeing it. A person passes it easily; a bot either fails or finds it too expensive to repeat thousands of times.

What is a CAPTCHA challenge response?

The challenge response is the answer that comes back: the letters a person typed, the tiles they picked, or the result of the browser’s computation. The CAPTCHA wraps it in a signed token, and your server checks that token with the CAPTCHA provider before it accepts the form.

Flow of a CAPTCHA: challenge, response as a signed token, server check, then allow or block

That last step is the one that matters. A response nobody checks on the server protects nothing, because a bot can skip the browser part and post the form directly.

What is a CAPTCHA code?

People mean two different things by “CAPTCHA code”. On a text CAPTCHA, it is the string of distorted letters and numbers you have to type into the box. For developers, it is the integration: a small script that runs the CAPTCHA in the browser and one server call that validates the token.

The integration has the same two parts whatever kind of challenge you choose. The client script loads with a site key, runs at the point you define (usually the submit button) and returns a token. Your backend sends that token to the provider’s API and gets back a pass, a fail or a score. Most providers ship both parts, so the code is short. The decisions that take time are where to put the CAPTCHA and what to do with borderline results.

What is a CAPTCHA test?

A CAPTCHA test is the whole check, from the challenge to the server’s decision. The T in CAPTCHA stands for test, and the name describes it fairly well: a Turing test that a computer runs on its own to tell people and machines apart. When a site asks you to “complete the CAPTCHA test”, it wants you to pass this check before it accepts what you sent.

What does CAPTCHA mean?

CAPTCHA is an acronym for “Completely Automated Public Turing test to tell Computers and Humans Apart.”

Alan Turing proposed his test in 1950 to ask whether a machine could pass for a human. A CAPTCHA turns the question around: the computer is the examiner, and it wants proof that you are not a machine.

Luis von Ahn, Manuel Blum and colleagues at Carnegie Mellon University coined the term in 2003. One of the first users was Yahoo, which was fighting bots that signed up for free email accounts by the thousand. The early CAPTCHAs showed a distorted image of random text, simple enough for a person and too hard for the character recognition software of the time.

How does a CAPTCHA work?

Every CAPTCHA follows the same sequence, whatever the visitor sees:

  1. Trigger. The CAPTCHA starts when a visitor reaches a risky action: sending a form, creating an account, resetting a password, paying.
  2. Challenge. The CAPTCHA sets its task. On modern systems this happens in the background.
  3. Response. The visitor types, clicks or waits while the browser computes.
  4. Token. The CAPTCHA turns the result into a signed token and adds it to the form.
  5. Validation. Your server asks the provider’s API whether the token is genuine and still valid.
  6. Decision. Depending on the result (pass, fail or a risk score), your application accepts the request, rejects it or asks for another check.

Steps 5 and 6 run on your server, and that is where the security comes from. Checks that only run in the browser can be replayed or skipped.

Types of CAPTCHA

CAPTCHAs have moved from distorted text to checks you never see. Each type trades security, convenience and accessibility differently.

CAPTCHA types in two groups: text, image grid, audio and math need the visitor to solve a task; checkbox and invisible CAPTCHAs need little or nothing

Text CAPTCHAs

The original format. You see letters and numbers that are stretched, bent and covered in noise, and you type what you read. The distortion is there to confuse text recognition software.

Text CAPTCHAs are still around, but machine learning reads them well now, and people often don’t. In a 2010 Stanford study, three people shown the same CAPTCHA agreed on the answer only 71% of the time.

Image CAPTCHAs

You select every image in a grid that shows a given object: traffic lights, crosswalks, bicycles. Image recognition used to be harder for bots than reading text. Computer vision has closed most of that gap.

Google’s reCAPTCHA v2 made image grids the standard, using street photos. Most people find them easier than warped text. They still add a visible step to every form and fail visitors who cannot see the pictures.

Audio CAPTCHAs

Audio CAPTCHAs are the accessible fallback for visual challenges. A recording reads out letters or numbers over background noise, and you type what you hear. Speech recognition software solves them, and the recordings are often so hard to follow that many visually impaired users still struggle.

Math CAPTCHAs

A math CAPTCHA asks a simple sum, such as “2 + 3 = ?”, before the form goes out. It is easy to build and needs no images, but a bot reads plain arithmetic as easily as plain text, so it offers almost no protection.

Checkbox CAPTCHAs

The “I’m not a robot” checkbox of reCAPTCHA v2 is the best-known example. The click itself is trivial. What counts is everything around it: Google does not publish the full list, but cursor movement, cookies and browser signals are part of it. If the system is unsure, it falls back to an image grid. reCAPTCHA is Google’s CAPTCHA service, and how CAPTCHA and reCAPTCHA relate is covered in CAPTCHA vs reCAPTCHA.

Invisible CAPTCHAs and proof-of-work

An invisible CAPTCHA has no visible task at all. The check runs while the visitor loads the page or fills in the form.

Score-based systems give each request a bot score, and your server decides what to do with it: accept, reject or ask for a harder check. Proof-of-work systems let the browser solve a small cryptographic puzzle automatically. One puzzle costs a real visitor a moment of computing time; a million puzzles cost a bot farm real money.

What CAPTCHAs protect against

CAPTCHAs work best against attacks that only pay off at volume:

  • Form spam: bots posting ads and malicious links through contact forms and comment fields.
  • Fake account creation: automated signups used for spam, free-trial abuse or fake reviews.
  • Credential stuffing: bots trying stolen username and password pairs against login forms.
  • Brute force: guessing passwords against login and reset pages.
  • Scalping: bots buying up tickets or limited stock faster than any person.
  • Poll and vote manipulation.

A CAPTCHA does not verify anyone’s identity, does not stop a human attacker and does not replace access control. Attackers can hire CAPTCHA farms, where people solve challenges for a few cents. The CAPTCHA raises the cost of automation; it does not make it impossible. For the rest of the defense, a honeypot CAPTCHA and rate limits are cheap additions.

Limitations of traditional CAPTCHAs

Text and image CAPTCHAs have three well-documented problems. They are why most providers moved to invisible checks.

User experience. A puzzle in the middle of a signup slows people down. People who fail it, or don’t understand it, leave. The effect on CAPTCHA UX is measurable and worse on phones, where image grids are fiddly.

Accessibility. Text and image challenges depend on sight. People who are blind, have low vision, dyslexia or certain cognitive disabilities often cannot complete them. Since 28 June 2025 the European Accessibility Act applies to many consumer services in the EU, so this is now a legal question as well.

Effectiveness. Machine learning reads distorted text better than people do. In 2014 Google’s own researchers reported that their image recognition solved the hardest distorted-text reCAPTCHAs with 99.8% accuracy. Image grids are following the same path, and CAPTCHA farms solve anything a person can.

How to choose a CAPTCHA

Using a CAPTCHA is the right call. Using the wrong one creates new problems: abandoned forms, accessibility complaints and, for EU businesses, questions about data transfers and consent.

The old trade-off, more security for more friction, no longer holds. Invisible systems check visitors in the background with proof-of-work and behavioral signals, and real visitors notice nothing.

For EU organizations three questions decide the choice. Does the CAPTCHA send visitor data outside the EU? Does it set cookies that need a consent banner? Does it show a puzzle that needs an accessible alternative? A cookie-free, invisible CAPTCHA hosted in the EU answers all three with no. That is the profile of a GDPR-compliant CAPTCHA.

Our comparison of the best CAPTCHA options answers these three questions for five well-known services side by side.

TrustCaptcha: an invisible CAPTCHA from the EU

TrustCaptcha checks visitors in the background with proof-of-work and bot scoring, so there is nothing to solve and nothing to click: the widget starts on its own. It sets no cookies, processes data in EU data centers and includes a Data Processing Agreement for every customer. The difficulty of the proof-of-work rises with the risk of the request, so a suspicious bot pays more than a regular visitor.

Try TrustCaptcha

Every plan starts with a 14-day free trial, and non-commercial websites can use TrustCaptcha for free. Start your free trial and protect your forms without asking your visitors to solve anything.

FAQs

What is a CAPTCHA?
A CAPTCHA is an automated test that tells human visitors and bots apart. Websites use it on forms that bots abuse, such as signup, login, contact and checkout, and only accept a request once the test is passed.
What is a CAPTCHA challenge?
A CAPTCHA challenge is the task a CAPTCHA sets before a request goes through. It can be an image grid, a checkbox, distorted text to type, or a computation the browser solves without the visitor seeing it.
What is a CAPTCHA challenge response?
The challenge response is the answer sent back to the CAPTCHA: what the visitor typed or clicked, or the result of the browser's computation. It arrives as a signed token, and the website's server checks that token with the CAPTCHA provider before it lets the request through.
What is a CAPTCHA code?
On a text CAPTCHA, the CAPTCHA code is the string of distorted letters and numbers you are asked to type. For developers, CAPTCHA code means the integration: a script that runs the CAPTCHA in the browser and a server call that validates the token.
What is a CAPTCHA test?
A CAPTCHA test is the whole check, from the challenge to the server's decision. The T in CAPTCHA stands for test: a Turing test that a computer runs automatically to tell people and machines apart.
What does CAPTCHA stand for?
CAPTCHA stands for Completely Automated Public Turing test to tell Computers and Humans Apart. The term was coined in 2003 by researchers at Carnegie Mellon University.
Is a CAPTCHA enough to stop all bots?
No. A CAPTCHA makes automation expensive enough that most bot traffic stops, but attackers who pay people to solve challenges or spread requests over many devices can still get through. Combine it with rate limits, IP rules and monitoring of failed logins.

Stop bots and spam

Stop spam and protect your website from bot attacks. Secure your website with our user-friendly and GDPR-compliant CAPTCHA.