Luhn / PAN Check
Check an account number against the Luhn algorithm and show it masked. Use test numbers only.
- 100% Free
- No account required
- Runs in your browser
- No data is uploaded
Use masked test data only. PANs, Track 2, PIN blocks and production keys must never be pasted here.
Local saving paused
Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.
Local saving is disabled for this sensitive tool. Use sanitized test data and clear the editor when finished.
Input
Paste or edit your number, then click “Run tool”.
Type, paste or drop a file
TextLn 1, Col 1Spaces: 2UTF-816 bytes
Output
Luhn result (read-only).
Read-only
TextLn 1, Col 1Spaces: 2UTF-80 bytes
Using the Luhn / PAN Check
Overview
Check an account number against the Luhn algorithm and show it masked. Use test numbers only.
Check an account number's check digit and see it masked, using test numbers.
How to use it
- Paste or type your Text into Input, drop a file onto it, or press Example to load a sample.
- Press Run tool, or ⌘ ↵ from anywhere on the page.
- Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.
Input
Number.
Output
Luhn result.
- Luhn (mod 10) check
- Expected check digit
- Masked number
- Spaces and dashes allowed
Tips
- Use documented test numbers such as 4111 1111 1111 1111.
- Mask the PAN before pasting anything from a log or a trace.
- Fields are parsed positionally, so keep the layout of the original message.
Keyboard shortcuts
- ⌘ ↵
- Run the tool
- ⌘ K
- Search every tool
- /
- Filter the sidebar