2FA Code Generator (TOTP)
Paste 2FA secrets (one or many lines, also account|pass|SECRET and otpauth://) to get 6-digit codes that refresh every 30 seconds. Computed in your browser — secrets never leave your device. Free, with API.
Accepts base32 (spaces and lowercase are fine), account|password|SECRET and otpauth://. Reloading clears everything — nothing is saved.
Codes are computed in your browser (RFC 6238) — secrets are not sent to the server. Only use for your own accounts.
Developer API
Call this exact tool from your code over JSON REST — same result as on the web, authenticated with an API key.
Endpoint
POST https://sieutool.net/api/v1/tools/2fa-codeAuth: send the X-API-Key header — create a free key in Account → API keys.
- Rate limit60 requests/min
- Daily quota1.000 requests/day
- PriceFree · up to 100 items/request
Request parameters
| Parameter | Type | Description |
|---|---|---|
secrets * | string | Secret 2FA — Mỗi dòng 1 secret (tối đa 100): base32, tài khoản|pass|SECRET hoặc otpauth://totp/… (mỗi dòng 1 mục) |
time | string | Thời điểm Unix (tuỳ chọn) — Giây; bỏ trống = giờ máy chủ |
* required. Send JSON in the body, Content-Type: application/json.
Code examples
curl -X POST 'https://sieutool.net/api/v1/tools/2fa-code' \
-H 'Content-Type: application/json' \
-H "X-API-Key: $NXP_API_KEY" \
-d '{"secrets":"JBSWY3DPEHPK3PXP\[email protected]|matkhau|GEZD GNBV GY3T QOJQ","time":1700000000}'Sample response
{
"ok": true,
"tool": "2fa-code",
"version": "1.0.0",
"data": {
"time": 1700000000,
"items": [
{
"line": 1,
"ok": true,
"label": "JBSW…3PXP",
"issuer": null,
"code": "324550",
"next_code": "367665",
"digits": 6,
"period": 30,
"algorithm": "SHA1",
"remaining_s": 10
},
{
"line": 2,
"ok": true,
"label": "[email protected]",
"issuer": null,
"code": "017492",
"next_code": "907147",
"digits": 6,
"period": 30,
"algorithm": "SHA1",
"remaining_s": 10
}
]
}
}Try it (live call)
Main error codes
| HTTP | code | Meaning |
|---|---|---|
| 400 | BAD_INPUT / NO_INPUT / TOO_MANY_UNITS / BAD_NUMBER… | Invalid input — the message names the field |
| 401 | MISSING_API_KEY / INVALID_API_KEY / REVOKED_API_KEY | Missing, invalid or revoked API key |
| 429 | RATE_LIMITED / IP_RATE_LIMITED | Per-minute rate limit exceeded — wait for Retry-After |
| 429 | DAILY_QUOTA_EXCEEDED | Daily quota used up — the upgrade field suggests a paid plan |
| 429 | CLUSTER_QUOTA_EXCEEDED | Linked accounts (same device/network) used up the daily quota — the free quota is shared across the group, not multiplied per account |
| 503 | SERVER_BUSY / TOOL_BUSY / API_DISABLED | Server under heavy load or API paused — wait for Retry-After |
Every response carries X-RateLimit-Remaining / X-RateLimit-Remaining-Day; 429/503 errors include Retry-After (seconds).
How to use
This tool generates two-step verification codes (TOTP) from secrets — like Google Authenticator, but on the web and for many accounts at once. Codes are computed in your browser following RFC 6238; secrets are not sent to the server.
- Paste secrets into the box, one account per line. Accepts base32 strings (e.g. JBSW Y3DP EHPK 3PXP — spaces and lowercase are fine), account|password|SECRET lines, or otpauth://totp/… links.
- The 6-digit code appears next to each line with a countdown ring; codes refresh automatically.
- Click a code or its Copy button to copy one code, or Copy all for the whole list.
Frequently asked questions
- Only use for your own accounts or accounts you are lawfully authorized to manage. Do not use it to access other people's accounts.
Related tools
VietQR Bank Transfer QR Generator
Free VietQR bank transfer QR generator: pick a Vietnamese bank, enter account number, amount and memo — every banking app can scan it. Download, embed, API.
21 runs
Hash MD5, SHA256, Base64 & URL Encoder
Compute MD5, SHA-1, SHA-256, SHA-512 of text or files; encode/decode Base64, URL and hex with full UTF-8. Runs in your browser — free, with API.
3 runs
JSON Formatter & Validator
Paste JSON to beautify (2/4 spaces or tab), minify, sort keys and see syntax errors with line:column. Runs in your browser — free, with API.
3 runs



