Developer

Runs in your browser. No file uploads for processing.

Check UTF-8 Bytes per Line and Detect CRLF or LF

Check UTF-8 bytes per line, flag lines over a byte limit, and detect CRLF, LF, CR and a UTF-8 BOM.

Loading tool...

How to check UTF-8 byte limits and line endings

  1. Open the original file or paste text

    Use the original UTF-8 file for an exact line-ending check. Pasting may normalize line endings before the tool receives them.

  2. Set the maximum bytes per line

    For example, é plus 🙂 has two Unicode code points but takes six UTF-8 bytes. A five-byte limit flags that line.

  3. Review endings and export findings

    See LF, CRLF and CR counts, byte offsets, longest line, and a leading byte-order mark. The JSON includes sizes and locations, not your text.

Use cases

  • Find records that exceed a fixed-width import or integration limit.
  • Check whether a text file mixes Unix and Windows line endings.

Limits and privacy

  • UTF-8 only, up to 2 MiB and 100,000 logical lines. This is not a visual character count, arbitrary encoding detector or line-ending converter.
  • Per-line limits exclude CR/LF terminators and a leading UTF-8 BOM. A trailing line ending leaves an empty final logical line.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

Can I convert a fixed-width file to columns?

Use Fixed-Width Text to CSV to split at chosen character positions. This inspector measures byte length without transforming the file.

Why do a text’s bytes and character counts differ?

UTF-8 uses one to four bytes per code point. Accents, emoji and non-Latin text can take more bytes than visible letters suggest.

How can I tell if my file uses CRLF or LF?

Open the original file and compare LF, CRLF and CR counts. Pasting can normalize the original breaks.

Does a byte order mark count toward the line budget?

A leading UTF-8 BOM contributes three bytes to the file total and is reported separately, but it is excluded from the first line’s budget.

What happens to invalid UTF-8?

The byte inspector refuses it instead of estimating character counts or replacing undecodable bytes.

Does the downloaded report include any text?

No. It contains byte counts, endings, offsets and up to the first 2,000 over-budget line entries, but not the original contents or file name.

Is the file uploaded or modified?

No. The browser reads it on this device and never modifies it.

Related tools