File Inspector & Transcoder
Detect true file formats via magic bytes to fix mismatched extensions, inspect text encoding and line endings, and save as UTF-8 with BOM to fix garbled CSVs in Excel.
Screenshots
Key Features
Open File Inspector to check real file formats and text encodings
file inspector / check file / file encoding / inspect file
Save CSV or text files as UTF-8 with BOM to fix garbled characters in Excel
fix csv / csv bom / utf8 bom / excel csv fix
Detect real file type from headers and fix mismatched file extensions
fix extension / real file type / magic bytes / detect format
Overview & Usage Guide
Detect the real format of files from their magic bytes and inspect text encoding and line endings. Save text files as UTF-8 with BOM (fixing garbled CSVs in Excel) or correct mismatched file extensions.
Usage
- Commands: File Inspector (
file inspector,check file,file encoding), Fix CSV (fix csv,csv bom,utf8 bom), and Fix Extension (fix extension,magic bytes,detect format). All three open the same workbench; start by clicking "Select Local File". - Magic Byte Detection: Identifies PNG, JPEG, WebP, AVIF, GIF, PDF, ZIP (
.docx,.xlsx,.pptx,.odt,.epub,.jar,.apk, and macOS.pages,.numbers,.keyZIP-based formats are treated as matching; Illustrator.aiis treated as matching PDF), and HTML-tagged text (flagged as mismatched only when the extension implies a binary format such as image, PDF, or archive—not for.php,.htm, etc.). Displays the first 16 bytes in hex and the real MIME type, and warns when the extension does not match. - Text Encoding & Line Endings: Detects UTF-8 / UTF-16 when a BOM is present. Without a BOM, valid UTF-8 is detected as UTF-8 and all other text is treated as GBK / GB18030, with the status bar indicating the detection basis. UTF-16 without a BOM is treated as binary. You can also manually select UTF-8, GBK / GB18030, Big5, or UTF-16LE. Detects CRLF, LF, CR, or mixed line endings. The list shows the first 100 decoded lines (searchable); binary files show a single row with header hex bytes.
- Shortcuts: On a preview row,
Enterruns the primary action ("Save as UTF-8 with BOM" for text files, or "Fix Extension" for mismatched binary files),⌘/Ctrl+Enterruns the secondary action, and⌘/Ctrl+Kopens the action panel (Fix Extension, Copy Line). - Save as UTF-8 with BOM: Normalizes line endings to the selected target (CRLF or LF) and saves a new file via the save dialog, up to 16 MiB. Saving is blocked if decoding under the source encoding fails. Binary files cannot be transcoded.
- Fix Extension: Requires selecting the file's parent folder in the prompt to authorize renaming; refuses to overwrite if the target filename already exists.
Platforms & Requirements
- Supported: Windows, macOS
- Requires client version 1.1.8.3 or later.
Network & Data
- Offline only; all data stays on your device.
Frequently Asked Questions (FAQ)
How do I install and launch "File Inspector & Transcoder" in ZTools?
Open the Plugin Marketplace inside ZTools Workbench, search for "File Inspector & Transcoder", and install it. Then type its name in the launcher bar to open it.
Is "File Inspector & Transcoder" free? Which platforms are supported?
Yes, it is free to install with source code published in the ZTools-extensions repository. Supported platforms: Windows / macOS.