AssertInbox

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.

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

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.