Torrent Metainfo Inspector

Torrent Metainfo Inspector

Local metainfo inspection · no torrent traffic or payload downloads.

1. Select metainfo

The second file is optional. Only the selected .torrent metadata is read.

Up to 4 MiB per file · 5,000 files · 256 trackers · 32 levels. The samples declare two 5-byte files; their v1 piece hashes were calculated from hello + world.

Choose a .torrent file or load a sample.

Comments & questions

Torrent Metainfo Inspector

Read a local .torrent file as strict bencode and inspect its file layout, v1 piece count, v2 piece-layer roots, trackers and the SHA-1 or SHA-256 info hash of the original encoded info dictionary. Add an edited copy to see whether the exact info bytes changed. The inspector does not connect to trackers, download content, or verify the actual payload files. It rejects malformed and oversized metainfo before presenting an info hash.

Key features

  • Parse canonical bencode and reject unsorted or duplicate keys, invalid integers and truncated values
  • Calculate v1 SHA-1 and v2 SHA-256 from the exact encoded info bytes
  • Check v1 piece hash count against the declared file sizes and piece length
  • Check v2 piece-layer lengths and Merkle roots for files larger than a piece
  • Compare tracker-only edits with changes inside info and export a review report

How to use

  1. Select an original local .torrent file, or load either sample pair.
  2. Optionally select a modified .torrent file to compare with the original.
  3. Run Inspect and review the version, file sizes, piece checks, trackers and exact info hashes.
  4. For a comparison, check whether info bytes changed; a tracker or comment edit can keep the hash.
  5. Download the JSON report if you need to keep the inspection result.

Use cases

  • Confirm whether a tracker URL change leaves the torrent identity intact
  • Inspect a received .torrent before opening it in a client
  • Check a small v1 fixture's multi-file sizes and number of piece hashes
  • Catch a damaged v2 piece layer without downloading payload data

Frequently asked questions

Does an unchanged info hash mean the download is safe?

No. The hash identifies encoded info metadata. It does not authenticate the publisher, scan content or verify downloaded file bytes. SHA-1 also has collision limitations; compare the exact info-byte result when reviewing edits.

Why can a tracker edit leave the info hash unchanged?

The tracker is a top-level metainfo field outside the info dictionary. BEP 3 and BEP 52 hash only the exact encoded info dictionary, so edits outside it can preserve the info hash.

What v2 data is checked?

The full SHA-256 info hash is calculated and piece-layer Merkle roots are checked for files larger than one piece. A single-piece file's pieces root cannot be checked without its actual content. Hybrid v1/v2 file ordering and padding equivalence are not proven here.

Will this tool contact a tracker or download anything?

No. Tracker URLs are displayed as inert text. The inspector neither joins a swarm nor checks whether any listed payload file exists.

What are the limits?

Each .torrent file is limited to 4 MiB, 100,000 parsed nodes, 32 nested levels, 5,000 listed files and 256 distinct trackers. File paths are display-only and suspicious traversal components are flagged.

Privacy

The selected .torrent bytes stay in this browser tab. This tool does not fetch tracker URLs, join peers or send metainfo to the site. A JSON report is downloaded only when requested; it includes names, tracker URLs and hashes, so review it before sharing.

References

Related Tools

Hash GeneratorFile Manifest VerifierHLS and DASH Manifest ValidatorWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchGraphQL Schema LabAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchPipe Network LabRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabSensor Calibration FitPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorOpenAPI Contract InspectorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorCoordinate Reference LabSurvey Traverse LabRaster Classification LabChoropleth Design LabMap Print ComposerRaster Reprojection LabElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchAPI Mock SandboxSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerJSON Schema ValidatorBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchScientific Data ProfilerTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript MinifierMock Data Generator.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterHTTP Status Code LookupMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorIndent ConverterNumber Base ConverterUnicode Escape ConverterUnicode InspectorJSON Structure DiffMarkdown Table GeneratorBase64 EncoderJSON FormatterURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →