AI Content Forensics

AI Content Forensics

Analyze text, code, images, PDFs, and Word documents locally. Review measurable evidence without treating it as proof of AI authorship.

Developer Tools

Local content forensics

Inspect measurable patterns in text, code, images, and PDF or Word documents locally. It does not determine who created the content.

Analysis does not send pasted text, source code, or selected image, PDF, or DOCX files; it processes them in local workers. To use it offline, open this page and run each mode while online to load its assets; keep the page open. Other site features may make requests while you are online.

Classifier status

Origin unknown. No validated classifier is available, so no probability is shown. The measurements below are descriptive V0 signals, not a classification result.

Try an example:

Keywords

AI content forensicstext pattern analysiswriting style comparisonlocal text analysisJavaScript TypeScript structure analysislocal image pixel statisticsPDF page text and image-object inspectionDOCX OOXML structure and metadataauthorship analysis limitations

Need something else?

How to use

1

Choose Text, Code, Image, PDF, or DOCX mode. Paste text or source code, or select a supported local file.

2

Inputs have explicit local limits: text 100,000 characters; code 250,000; image 25 MiB/12 MP; PDF 20 MiB/100 pages; DOCX 20 MiB/32 MiB expanded.

3

Review text changes, code structure, image regions, PDF page evidence, or separated Word paragraphs, comments, styles, relationships, and media. This does not establish authorship.

4

Try the built-in text, code, and image examples, then download a JSON evidence report if you need a copy.

Features

Paragraph and window segmentation

The analyzer preserves offsets in the pasted text and creates paragraph records plus overlapping token windows for longer passages.

Code structure without upload

Inspect JavaScript, JSX, TypeScript, or TSX AST shape, branches, functions, declarations, naming, imports, and comments separately.

Image pixel and region statistics

Review channel distributions, entropy, edge residuals, frequency measurements, coordinate-preserving regions, and local C2PA signature validation when a manifest is present.

Page-linked PDF evidence

Inspect local PDF metadata, page text and coordinates, image drawing-operation markers, and page sizes as distinct evidence types. DOCX mode separately lists bounded Word text, comments, styles, relationships, metadata, and media parts.

Versioned evidence export

Reports carry engine/parser versions and modality-specific evidence. They contain measurements, not authorship or provider probabilities.

Why Choose This Tool?

Keep content on your device

Pasted text, source code, image, PDF, and DOCX data are processed in local workers and are not sent to an analysis service.

See the evidence behind each marker

Each comparison reports the distance values and the versioned threshold used by the rule. You can inspect the feature vector and paragraph statistics instead of receiving an unsupported single-number verdict.

Compare mixed passages

Paragraph-level summaries can reveal where the measured writing patterns shift. This is useful for editorial review, document comparison, and deciding which passages deserve closer human inspection.

Reproduce an analysis later

Stable serialization, input hashing, and explicit feature versions let you compare reports from the same engine configuration. The output describes the actual measurements without claiming an author's identity.

What Text Pattern Analysis Can and Cannot Tell You

Text forensics starts by measuring observable properties of a passage. This local analyzer records paragraph boundaries, token counts, sentence-length variation, lexical diversity, character and token entropy, punctuation rates, formatting markers, and common adjacent word pairs. It compares neighboring paragraph feature vectors with Jensen–Shannon divergence and a normalized distance. These measurements can help a reviewer find passages whose surface patterns differ from nearby text.

A difference is a question, not a verdict

A distribution change can arise for many ordinary reasons. A writer may move from a personal anecdote to a technical explanation, quote a source, insert a list, translate a paragraph, or revise only one section. A shift in topic changes vocabulary; a shift in audience changes sentence length. A new heading, code snippet, or citation changes formatting statistics. The analyzer therefore labels a result as a possible distribution change. It does not label the passage human-written, AI-generated, or written by a particular provider.

How paragraph features are computed

The tokenizer uses Unicode letter and number sequences and retains common internal apostrophes and hyphens. Sentence boundaries are approximated from common sentence-ending punctuation. Type-token ratio divides unique normalized word forms by token count. Entropy summarizes how evenly character or token frequencies are distributed. Formatting features count observable markers such as headings, list prefixes, colons, em dashes, parentheses, and emphasis syntax. Frequent bigrams show repeated neighboring word pairs. Every feature vector has a version so later changes to its meaning can be distinguished.

These are descriptive statistics, not a trained classifier. No labeled training corpus, calibration curve, or held-out accuracy benchmark is bundled with this version. For that reason the interface does not produce an AI percentage, human percentage, provider likelihood, or model name. Turning an arbitrary feature into a probability would create an appearance of certainty unsupported by validation.

Local source-code structure

The Code mode parses JavaScript, JSX, TypeScript, and TSX with the locally bundled TypeScript parser in a worker. It records syntax-node kinds and depth, branch counts, approximate complexity, function spans, declarations, imports, naming patterns, indentation, and comment/docstring offsets. Source text and comment spans remain separate report segments. This is a structural summary, not a style verdict: formatter choices, language conventions, frameworks, and project templates can dominate the measurements. The parser loads only when code analysis is selected and stops after its time budget.

Image metadata and pixel regions

The Image mode checks PNG, JPEG, GIF, and WebP headers before decoding. It rejects files over 25 MiB, dimensions above 12,000 pixels per side, and images above 12 megapixels. Pixel statistics include channel means and variances, entropy, neighboring-pixel residuals, sampled 8-by-8 DCT frequency energy, and a configurable region grid with 2×2, 4×4, or 8×8 presets. The report preserves each region's original image coordinates and the page provides both a map and a text list. When a PNG, JPEG, or WebP contains a C2PA/JUMBF marker, the official C2PA Web SDK loads on demand and checks the embedded manifest locally. Remote manifests and online OCSP checks are disabled. A cryptographically valid signature remains “untrusted” unless its signer chains to an explicitly approved, versioned local trust bundle; no such bundle is silently assumed. EXIF values and XMP/ICC markers remain unsigned and unverified. GPS coordinates are not included in the report.

Segmentation and comparisons

Blank lines define the initial paragraphs. Long paragraphs also receive overlapping windows of up to 512 tokens with a 128-token stride. Offsets refer to the original JavaScript string, allowing a report to point back to the source text. Adjacent paragraph comparisons use a fixed, documented threshold in the current ruleset. Very short neighboring passages are excluded from change-point marking because their estimates are especially unstable.

Window and paragraph vectors can be compared only when their feature version, tokenizer, ruleset, and language/script are compatible. Similarity is not proof of common authorship, and dissimilarity is not proof of multiple authors. A human may deliberately vary style; multiple people may share a template; an AI-generated passage may be heavily edited. Topic and formatting can dominate the measured differences.

Reproducible reports

The report stores a SHA-256 digest of the exact UTF-8 input bytes, an analysis identifier derived from the input digest and engine/ruleset versions, and the feature and tokenizer identifiers. Stable key ordering and numeric precision make repeated exports identical for the same input and software version. The report does not include the current time or a random identifier. Preserve the original input separately if you need to reproduce an analysis; a hash identifies bytes but cannot restore them.

PDF pages and embedded evidence

PDF mode uses the locally hosted PDF.js parser in a worker. It separates bounded document metadata, page text blocks and coordinates, page dimensions, structure counts, and image-paint operators. Limits are 20 MiB, 100 pages, one million extracted text characters, two million operators, 500 image markers per page, and a 20-second worker deadline. A scanned-only file receives a no-extractable-text warning, not an authorship inference. Image markers identify PDF drawing operations only; embedded image pixels are not decoded by this release. Encrypted or malformed files may be rejected. The report contains extracted text, so inspect it before sharing. PDF.js does not provide a complete decompressed-stream byte budget here; complex documents may still use substantial memory before post-extraction limits apply.

DOCX archives and OOXML parts

DOCX mode inspects the ZIP central directory before expanding any part. It rejects archives over 20 MiB, more than 4,096 entries, entries above 8 MiB, declared expanded totals above 32 MiB, compression ratios over 100:1, encrypted or unsupported compression entries, duplicate names, unsafe paths, ZIP64, and malformed bounds. Selected XML parts have a 2 MiB per-part and 10 MiB aggregate ceiling; the XML tokenizer rejects DTD/entity declarations, limits nesting to 100 and nodes to 200,000, and the worker is terminated after 10 seconds. It reports paragraphs by OOXML part and stable part-local position, comments, style records, relationships, media inventory, unsupported parts, and core/app properties. Creator names and dates are unverified metadata. External relationships are listed but never fetched or followed. Eligible extracted text runs through the local text-statistics engine with source-part ranges mapped back to the report. Up to 25 supported embedded raster images and 24 megapixels total are processed by the existing local image engine; other media remains inventory-only. Binary bytes are discarded after worker analysis.

Use the measurements as a review aid alongside source history, drafts, citations, interviews, and other context. Do not use a statistical marker alone to accuse someone of misconduct, make an employment decision, or establish authorship. Automated detectors can produce false positives and false negatives, especially after editing, translation, paraphrasing, or when analyzing short or specialized text. C2PA verification is a separate evidence class: it can establish manifest integrity and, with an approved trust bundle, signer trust, but it does not by itself prove human or AI origin. This version does not test provider-private watermarks or signed provenance inside PDF and DOCX containers.

Use this output responsibly

Privacy and practical limits

Text, code, image, PDF, and DOCX analysis runs in local browser workers and sends no user content to an analysis service. File reports include extracted text or metadata; review the JSON before sharing. The PDF path does not currently enforce a complete decompressed-stream budget; the DOCX ZIP path applies declared and actual output ceilings while inflating selected XML entries. Secure browser contexts such as HTTPS or localhost are required for text hashing. Results may change if parser versions or feature definitions change, which is why reports carry version metadata.

How to review a marked transition

Start by reading both paragraphs around the marker in context. Ask whether the subject, intended reader, document section, or source material changes at the same point. Then inspect sentence-length variance, lexical diversity, punctuation, and frequent word pairs. A marker is more useful when several independent measurements shift together, but this interface still does not combine them into an authorship verdict. Record the contextual explanation alongside the JSON if you are conducting an editorial review. Do not remove a passage or challenge its author solely because one metric differs.

Why a topic shift changes style measurements

Vocabulary statistics are especially sensitive to subject matter. A paragraph about a weekend trip may contain common verbs and concrete place names; a paragraph about a database migration may contain acronyms, identifiers, and longer technical terms. That alone can change token entropy, word length, bigrams, and the type-token ratio. A transition from narrative to instructions can also change sentence boundaries and punctuation. For a fair comparison, choose passages with similar topics and purposes, and treat a cross-topic comparison as a weak signal that needs human interpretation.

Clusters describe similarity inside this document

The local clustering step groups paragraphs whose feature vectors are close under a fixed distance threshold. Labels such as A and B are generated in document order and have no connection to people, language models, companies, or identities. The number of groups depends on the thresholds and on the text supplied. A paragraph can move groups after a ruleset change without anyone changing the source. Cluster labels are useful as compact visual indexes: they help you compare passages and locate unusual regions, but they do not name an author or imply that two passages share a source.

Choose comparison passages carefully

Longer samples generally provide more observations for word and sentence statistics. A two-sentence note cannot support the same conclusions as several pages of comparable prose. Quotes, headings, lists, code fragments, tables, and references should be separated or interpreted with care because their conventions differ from ordinary paragraphs. If a document contains multiple languages, compare passages within the same language rather than treating translation choices as a change in authorship. These practices improve the usefulness of the measurements without turning them into proof.

Keep a record of the review question

Before running an analysis, write down what you want to understand. You may be checking whether a draft contains a sudden shift in formality, locating an inserted passage for an editor, or comparing two revisions. A focused question makes it easier to select comparable regions and interpret the output. Save the report together with the exact source version, the reason for the review, and any contextual observations. This record helps a later reviewer distinguish an original measurement from an interpretation added afterward. It also discourages a reader from treating an exploratory feature as a formal finding.

When the purpose is unclear, pause before drawing conclusions. Ask whether a simpler comparison or ordinary editorial review would answer the question with less risk of over-reading a statistical pattern.

Frequently Asked Questions

Does this tool tell me whether text was written by AI?

No. It reports descriptive text statistics and possible differences between neighboring paragraphs. It has no validated authorship classifier and does not calculate AI or human probabilities.

Can it identify ChatGPT, Claude, Gemini, or a specific model?

No. C2PA can validate signed claims when present, but this release has no provider fingerprints, private watermark keys, or validated provider model. Provider and model attribution remain unknown unless a trusted signed claim states limited provenance information.

What does a change point mean?

It means adjacent paragraph feature vectors exceeded a fixed versioned distance threshold. Topic, genre, formatting, editing, translation, and passage length can all cause this; it is not proof of another author.

Is my pasted text uploaded?

Pasted text, source code, selected image bytes, PDFs, and DOCX archives are processed in local browser workers and are not sent to an analysis service. Reports can contain text excerpts or metadata, so inspect them before sharing.

How much text can I analyze?

The interface accepts up to 100,000 characters. Very short paragraphs may be too small for stable comparisons, while long paragraphs are represented by overlapping token windows.

Can I reproduce an analysis?

The JSON records an input SHA-256 digest and the engine, ruleset, tokenizer, and feature versions. Identical input and versions produce deterministic JSON; a digest cannot recover the original text.

Does the report contain a probability or accuracy score?

No. There is no validated and calibrated model in this release, so it exposes measurements and distances rather than unverified probability or accuracy claims.

What content can it analyze?

It analyzes pasted text, JavaScript/JSX/TypeScript/TSX, PNG/JPEG/GIF/WebP images, bounded PDF evidence, and DOCX paragraphs, properties, comments, styles, relationships, and media inventory. Image mode locally verifies embedded C2PA in PNG, JPEG, and WebP when detected; provider-private watermarks and signed provenance inside PDF or DOCX are not checked.

Learn more