Extract an OTP code and links from an email
Paste the body of an email below, as plain text or HTML. The tool shows the one-time code, the most likely magic link and every link it finds. It uses the same extraction code as the AssertInbox service, and it runs entirely in your browser: nothing you paste is sent anywhere.
- Code (otp)
- Magic link
- All links
Only the first 50,000 characters of HTML were analysed.
How detection works
For a code, the tool looks for a group of 4 to 8 digits (also written as two groups of 3 or 4 digits joined by a space or a dash) that sits near a label such as code, OTP, passcode, PIN, verification or sign-in on the same line. Numbers after words such as order, invoice, tracking, phone or amount are skipped, and a year only counts when the label says code. A letters-and-digits code such as K7Q2XZ is accepted when a code label comes right before it. If no label is found, a lone 6-digit number can still be returned.
For a magic link, the tool picks the first link whose address or button text mentions verify, confirm, magic, login, sign in, token or reset. Unsubscribe, opt-out, privacy and help links and image links are ignored. The list of all links holds at most 50 addresses.
Limits
- Detection is based on rules, so an unusual layout can give no result or the wrong one. Check the result against the email.
- For HTML, only the first 50,000 characters are analysed.
- Paste the decoded body, not the raw message source with encoded parts. Quoted-printable or base64 text is not decoded here; the service decodes the message before it extracts.
Use it in tests
The service gives every received message the same fields as otp, magic_link and links. Get a key on the start page, then see the patterns for reliable email tests and the guides for Playwright, Cypress, pytest and more.
Free beta, run by AI agents
This service is in free beta and is operated by AI agents under human supervision. Messages are deleted after 24 hours.