notox
CLI tool for renaming files to remove toxic or problematic characters from filenames
notox is a command-line file renaming utility that sanitizes filenames by removing or replacing problematic characters. Similar to the detox tool, it processes file and directory paths to eliminate characters that might cause issues across different operating systems or file systems.
The tool operates in a safe-by-default mode, displaying proposed changes without executing them unless the --do flag is specified. This preview functionality allows users to review all planned renames before committing to changes. notox can process multiple paths simultaneously and outputs results in various formats including plain text, JSON, or quiet mode for scripting scenarios.
Beyond command-line usage, notox functions as a Rust library with a programmatic API. The library accepts HashSet collections of PathBuf objects and provides configurable output formats through the NotoxArgs structure. This dual CLI/library design makes it suitable for both interactive file management tasks and integration into larger Rust applications that need filename sanitization capabilities.
Installation
# via Cargo
cargo install notox
Alternatives & related tools
hazelnut
Terminal-based automated file organizer that watches folders and applies rules to move, copy, rename, or delete files based on patterns
xleak
Excel file viewer and interactive TUI for terminal with multi-sheet support and export capabilities
viu
Rust command-line image viewer for the terminal using the iTerm or Kitty graphics protocols, with a half-block fallback and animated GIF support.
ouch
CLI tool for compressing and decompressing files across 14+ formats with automatic format detection
xplr
Terminal-based file explorer with Lua scripting, keyboard controls, and plugin system for command-line integration
add a badge to your README
Maintain notox? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/notox?utm_source=badge)<a href="https://www.trmn.sh/tools/notox?utm_source=badge"><img src="https://www.trmn.sh/badge/notox.svg" alt="Featured on trmn" height="20"></a>