File Encoding Detector
Detect file encoding (UTF-8, UTF-16 LE/BE, ASCII, Latin-1, Windows-1252, BOM presence) from bytes. Confidence scores, byte histogram, and 10+ extras. 100% private.
About File Encoding Detector
Detect file encoding (UTF-8, UTF-16 LE/BE, ASCII, Latin-1, Windows-1252, BOM presence) from bytes. Confidence scores, byte histogram, and 10+ extras. 100% private. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
How is encoding detected?
The tool reads the first 8KB of the file as bytes and applies: (1) BOM check (UTF-8/16/32 BOM), (2) UTF-8 validity check (multi-byte sequence validation), (3) null-byte pattern for UTF-16, (4) ASCII-range ratio for ASCII/Latin-1, (5) Windows-1252 specific byte patterns.
What extras does this tool have?
Extras: (1) Confidence score per encoding, (2) Byte histogram (256 buckets), (3) Show first 256 bytes in hex, (4) Show printable ASCII preview, (5) Detect BOM type (UTF-8/16LE/16BE/32), (6) Detect line endings alongside encoding, (7) Multi-file batch mode, (8) CSV export of batch results, (9) Suggest encoding for editor config, (10) Copy result as JSON, (11) Detect null bytes (binary indicator), (12) Show control char count, (13) Validate UTF-8 strict mode, (14) Show file size + first 4 bytes signature.
Related tools
7Z Extractor
Inspect and extract files from 7z archives. Detects the 7z signature (0x37 0x7A 0xBC 0xAF 0x27 0x1C), parses the SignatureHeader and StartHeader, lists files from the archive metadata, and extracts STORE-method files when possible. Honest about LZMA compression limitations. 100% client-side.
APK Extractor
Extract and inspect Android APK files in the browser — pure JavaScript APK (ZIP) parser. View AndroidManifest.xml (binary XML detection), list DEX files, resources, and assets, extract individual files, detect app info (package name, version) from manifest. 100% client-side.
ARJ Extractor
Inspect ARJ archives. Detects the ARJ magic (0x60 0xEA), parses header structures, lists file entries with sizes and CRCs, and extracts STORE-method files when possible. Honest about ARJ compression limitations. 100% client-side.