On-device pattern recognition in vanilla JS. Files are not uploaded. The page loads Google Fonts.
Answer one question honestly: what can be measured about this file or text, and how much does each measurement prove? Only objective signals change the score. Subjective or easily forged cues are shown with 0 weight.
- Files · Forensics
- C2PA (js/provenance.js): JUMBF extraction from JPEG APP11, PNG caBX, WebP/RIFF and BMFF uuid boxes (MP4, MOV, HEIF, AVIF); CBOR decoding; assertions, actions, digitalSourceType, ingredients, manifest count. The COSE_Sign1 signature is verified with WebCrypto (ES256/384/512, PS256/384/512, Ed25519) against the leaf X.509 certificate, and the c2pa.hash.data content hash is recomputed with exclusions. Tested against the official c2pa-rs fixture: signature valid, hash match.
- JPEG (js/jpeg.js): DQT parsing, IJG quality fit, standard vs custom table cross-checked against EXIF, subsampling, progressive mode, restart markers, EXIF thumbnail, 8×8 DCT grid alignment, double-quantization periodicity, JPEG ghost curve and map.
- Pixel checks: noise residual σ, kurtosis, noise uniformity, flat-area ratio, 1D and 2D residual FFT, CFA correlation, block periodicity, histogram comb gaps, colour diversity, copy-move clones, generator dimensions. Checks are switched off automatically when they can't be trusted: CFA with chroma subsampling, and noise after downscaling or editing software.
- Video: frame sampling, fixed-pattern noise carried across frames, texture shimmer between adjacent frames in still areas, brightness flicker, C2PA in BMFF.
- Audio: bandwidth, spectral flatness, loudness variation, crest factor, stereo correlation, C2PA.
- Scoring: score limited to 15–85 without a provenance tag; damped when signals disagree. Reliability drops with screenshots, low JPEG quality, double compression, a lost DCT grid, or tampering. A verified C2PA AI tag scores 50 points; a tampered one scores 15.
- Batch dashboard with filters, search, sort and CSV export.
- Writing check (js/writing.js, shown at the top of the Text · Numbers tab when the pasted text has at least 40 words of prose, or enough text to be scored): English, 150+ words, 6+ sentences. Signals: self-disclosure or template residue (strong), post-2022 marker vocabulary (Kobak 2024, Liang 2024), stock phrases, sentence-length burstiness, paragraph uniformity, informal slips, leftover Markdown and repeated openers. Contractions, em dashes and lexical diversity are shown but not scored. Score is limited to 15–85 unless the text discloses itself; reliability is capped at 65%. Test results: a typical assistant paragraph scored 79 (Leans AI-style), a casual human note 31 (Leans human-style).
- Camera match (js/prnu.js, in the Files tab): PRNU sensor fingerprint built with a maximum-likelihood estimate from reference photos; tests other photos with PCE over a 512 px centre crop and all 4 rotations; threshold PCE 60. Synthetic test: same sensor PCE ≈ 10⁵, different sensor 6.7.
- C2PA trust: certificate chain signatures are verified, then matched against the bundled official C2PA conformance trust list (trust/c2pa-trust-list.pem). MP4/MOV BMFF hashes (v1/v2, top-level exclusions) are recomputed for unfragmented files under 400 MB.
- Text · Numbers (js/text.js, js/cells.js, js/textui.js): typed tokens with validation (Luhn, IBAN mod-97, calendar dates, IP ranges, coordinates, email). Tables from delimited text (comma, tab, pipe, semicolon, Markdown, quoted CSV, aligned columns), key:value records and repeating line shapes; lines that can be read two ways give one table that says "Also readable as". One reader types every column (js/cells.js): decimal comma or dot, thousands separators, currency, percentages, units, parenthesised negatives and dates, with the day/month order detected for each column and every value kept as exact digits. Rows with the wrong number of cells are listed as not fitting, and adjacent duplicate rows are kept and reported, not removed. Numeric column stats and MAD outlier flags.
- Number patterns (js/numbers.js for the cards, js/relations.js, js/sequence.js and js/textrel.js for the searches, js/patterns.js for choosing between results, all inside the Text · Numbers tab):
- Row relations (js/relations.js): sums and differences, products, ratios, percent change, × a constant, affine rules (
F = C × 1.8 + 32,Fee = Amount × 0.029 + 0.3), two-column linear rules, three-column forms (Qty × Price + Shipping), max and min, running totals, previous row, change from the previous row, compound growth, the average of the last three rows and date offsets in days, weeks or months (Due = Invoice + 1 month). A rule can also change once (× 0.2 in rows 1–8, × 0.25 from row 9) or take one value per category (rate by Country). Every relation is evaluated exactly from the cell digits (a quick floating-point pass only decides which relations deserve the exact check), and a row holds when the prediction is within half a unit of the target column's last decimal, counted as exact or as holding after rounding. - Sequences (js/sequence.js): step (with missing values in columns, and dates), ratio, a ratio that grows by a step (1, 3, 15, 105 …), polynomials of degree 2 to 5, linear recurrences of order 2 to 6 (Fibonacci, tribonacci, Padovan), × a then + b, repeating cycles of period up to 12, interleaved halves (odd and even positions follow different rules), a rule on the differences (differences are primes), alternating signs, one change point, and a small library of known sequences with their OEIS numbers (primes A000040, factorials, Catalan, Bell, partition numbers and more) that is tried on lists of 7 to 60 numbers. One exact engine (BigInt integers and fractions) reads every list and column whatever its length, so values beyond 2^53 stay exact. A repair walk grades each rule: a wrong value counts as exactly one exception and is replaced by the value the rule expects, and rules that can run backwards are also walked from the end, keeping the direction with fewer exceptions. A
?in a number list is filled in when a rule fits the known numbers. For whole-number data, steps and polynomials are written in closed form (4n − 1, n², (n² + n) / 2) when the coefficients are simple fractions. - Text relations (js/textrel.js): unique columns and repeated values, formats (
AAA-9999), ID sequences with the missing and repeated IDs named, one column that determines another (City → Country, with the rows that break it), names joined into another column (Full = First + " " + Last), category counts, near-duplicate spellings, and mixed currencies or date orders. - Grading: every rule is graded the same way: how many values it holds in, and how often shuffled values match as well, corrected for every rule or relation tested on that list, column or table (every family together, including both directions and every combined rule). A result needs a chance of 1 in 1,000 or better and must hold in at least 60% of the rows. There are no confidence percentages. A next value or a filled
?is shown only when the rule has no exceptions and no other clean rule continues differently. - Totals and digit habits: total, subtotal, average, count, minimum and maximum rows are checked against the rows they summarise, a declared
Total: $29.60line is checked against the money columns, and whole-number columns get last-digit, rounding and Benford checks (with a χ² p-value). - When there is more than one pattern (js/patterns.js): the same rule written two ways (
Net = Gross − FeeandGross = Fee + Net, a cycle of period 2 and of period 4) is shown once, with the other forms under "Same rule, written differently". Two clean rules that fit about equally well (within a factor of 100) and continue differently are labelled Ambiguous and shown side by side with the position where they part; no next value or fill is given, and for rows only the cells that every rival flags are marked. Other rules that fit are listed with their own chance, and a relation that follows from the others is collapsed under "Also follows from the above". Independent columns are listed separately and joined by a chain line (Units, Price → Revenue → Tax → Total). A row that another shown rule explains (for example one outside a change point) is not counted as an exception and says "explained by". A cell that breaks several rules has one mark and every reason. Each card shows its five strongest patterns and keeps the rest under "More patterns". - Explanations: every pattern, rival, part, total and text relation has a "How this was found" block (the rule and where each number came from, worked rows with the arithmetic, the tolerance, the chance worked out with every multiplier named, and why this one was chosen), and each card ends with "Tested but not shown": the best failing candidate for each column or list and why it failed. Hovering or focusing a pattern highlights its columns and cells, and clicking an exception jumps to its cell. The Findings button exports patterns, exceptions, equivalent forms, rivals, how each was found and a worked example as CSV.
- Row relations (js/relations.js): sums and differences, products, ratios, percent change, × a constant, affine rules (
- References: comparison with online detectors (trained classifiers, provenance verifiers, vendor watermark tools, forensic toolkits, AI-text detectors) plus the sources behind every check.
One set of tokens (radius, font sizes, gap, pill shape, three control heights: 24, 32 and 38 px) for every control: tabs, theme switch, buttons, chips, badges, custom dropdowns (js/dropdown.js, replacing the native select popup), search inputs, textarea, disclosure arrows, scrollbars, audio/video players and the drop zone. Dropdown buttons, file-card chevrons and disclosure arrows share one chevron shape. Dropdowns support arrow keys, Home/End, type-ahead, Enter and Escape. Scrollbars and media players follow the in-app theme, not only the OS setting. File pickers are keyboard-focusable with the same focus ring as every other control.
- C2PA revocation (OCSP/CRL) is not checked, and the trust list is a snapshot that must be refreshed by hand.
- BMFF hashes with nested exclusions or Merkle trees (fragmented MP4) are reported as unchecked.
- The writing check has no language-model perplexity, works only in English, and can be fooled by paraphrasing.
- Camera match needs original, uncropped, unresized files.
- SynthID cannot be decoded client-side.
- There is no trained classifier, so many clean generated images without tags will show as Inconclusive.
- Number patterns only test the relation families listed; a relation that holds in fewer than 4 rows, or by plausible chance, is not shown.
- Short lists cannot prove much: a rule with k free numbers needs at least k + 3 checks, and library matches need 7 or more numbers. A list the app declines to explain is not evidence that it has no pattern.
- Rules are fitted on the first 1,000 values of a list or column and checked on all of them, and the result says so when the list is longer. Lists or columns with more than 9 decimals or values of more than 60 digits are not tested for sequences.
- Recurrences are fitted on windows of up to 24 values (start, middle and end of the longest unbroken run of known values), so one wrong value in a list of 24 or fewer can hide a recurrence. Missing values are detected in columns with a step rule, not in lists.
- Relations are searched in the first 1,000 rows and then re-checked on every row; column stats, totals and digit checks always use every row. Number lists are analysed up to 200,000 values.
- Row relations are exact for numbers of any size. A column with values of 2^53 / 10^decimals or more skips the quick floating-point screen and is checked exactly straight away, which is slower.
- Day and month can be ambiguous. A date column whose every date reads as both day-first and month-first (01/02/2026) gets no date relations, and the card says so; a column that mixes the two orders is reported.
- A combined rule has one change point (with at least 5 rows or values on each side) or one value per category (at most 12 categories, at least 3 rows in each). Two or more change points are not searched. Change-point rules on a list need 60 values or fewer, and interleaved rules need 200 or fewer.
- Relations are searched in the first 12 numeric columns and 6 date columns; three-column forms and two-column linear rules use the 8 columns with the most distinct values; combined rules by category use the categorical columns the table has. Columns that were not searched are listed on the card.
- Text relations need at least 5 rows; ID sequences need 8 or more. A column is only tested as the target of a dependency when it has at least 3 distinct values, and the input column's values must repeat about 3 times on average. Joined names try two columns, 7 separators and 3 letter-case forms. Up to 8 text columns are searched as targets and 10 columns as inputs; spelling pairs need 5 or more characters. Formats and category counts are reported as observations, with no chance.
- "Tested but not shown" lists the best candidate for each column or list. A relation that fails the 60% support test is listed only when it was checked in full, so candidates that fail the quick screen are not named. For lists, the three best near misses are kept.
- Inputs over 150,000 characters are analysed after a short pause with a progress line. On a typical laptop the in-app sample takes about 0.1 s, a 1,000 × 12 numeric table under 2 s, a 5,000 × 12 table under 4 s and a 200,000-value number line under 6 s.
index.html, css/style.css, js/app.js, js/provenance.js, js/jpeg.js, js/util.js (shared helpers: seeded random numbers, binomial tails, exact fractions, escaping), js/cells.js (one reader for cell values and column types), js/writing.js, js/sequence.js (list and column sequences), js/relations.js (row relations), js/textrel.js (text relations), js/patterns.js (choosing between results), js/numbers.js (number patterns, cards and CSV), js/text.js (tables and tokens), js/textui.js (the Text · Numbers tab), js/prnu.js, js/dropdown.js, tests/cases.js (every test case), tests/run.mjs (node tests/run.mjs runs them without a browser; --golden DIR snapshots results, --perf times the budgets, --calibrate counts false positives on random data), tests/fixtures/ (the case inputs), tests/patterns.html (the same cases in a browser), trust/c2pa-trust-list.pem, favicon.svg, images/logo.jpg. No data tables.
Nested BMFF exclusions, an OCSP revocation check (needs a CORS-enabled responder), more languages for the writing check, and saving camera fingerprints in localStorage.