UnQTools
File Runs in your browser

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.

100% Private Works Offline Instant

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

  1. Enter your input in the tool above.
  2. Adjust any options to your preference.
  3. Use the Copy or Download buttons to save the result.
  4. 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.

Search tools and actions

Search across all 645 tools, categories, and quick actions.