isutf8(1)

isutf81

Check whether files are valid utf-8

Usage

isutf8 [-hqliv] [--help] [--quiet] [--list] [--invert] [--verbose] [file ...]

Overview

isutf8 checks whether files are syntactically valid UTF-8. Input is either files named on the command line, or the standard input. Notices about files with invalid UTF-8 are printed to standard output.

Options

FC-hF[0], FC--helpF[0]

Print out a help summary.

FC-qF[0], FC--quietF[0]

Don't print messages telling which files are invalid UTF-8, merely indicate it with the exit status.

FC-lF[0], FC--listF[0]

Print only the names of files containing invalid UTF-8.

FC-iF[0], FC--invertF[0]

Invert the selection: list UTF-8 compatible files.

FC-vF[0], FC--verboseF[0]

Also print an hexdump-like view of the error and some context.

Exit status

If the file is valid UTF-8, the exit status is zero. If the file is not valid UTF-8, or there is some error, the exit status is non-zero.

Releases

11 releases since Debian 4.0 (Etch); the text changed 9 times.

  1. 4.0
  2. 5.0
  3. 6.0–7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13
  10. Arch

--help until Debian 13 (Trixie); --invert until Debian 13 (Trixie); --list until Debian 13 (Trixie); --quiet until Debian 13 (Trixie); --verbose until Debian 13 (Trixie); -h until Debian 13 (Trixie); -i until Debian 13 (Trixie); -l until Debian 13 (Trixie); -q until Debian 13 (Trixie); -v until Debian 13 (Trixie).

Author

Lars Wirzenius, Julien Palard

From moreutils 0.70-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.