File Tools
Convert files to Base64, inspect EXIF metadata, and identify MIME types.
22 tools available, all running locally in your browser.
- File Add BOMAdd UTF-8 BOM to file content.TOOL
- File CompareCompare two file contents — separate them with '---' on its own line. Reports equality plus each side's size in UTF-8 bytes.TOOL
- File Deduplicate LinesRemove duplicate lines.TOOL
- File DiffLine-by-line diff of two files.TOOL
- File Extract HeadersExtract header/comment lines that start with '#' (Markdown headings) or '//' (code comments).TOOL
- File HashCompute a simple hash of file content.TOOL
- File InfoGet file content info: size, lines, words.TOOL
- File JoinJoin file chunks into one.TOOL
- File JSON to TOMLConvert JSON to simple TOML.TOOL
- File Line EndingsConvert line endings between LF and CRLF. Input: content, '---' on its own line, then 'lf' or 'crlf' (other values are rejected). Lone CR characters are normalized.TOOL
- File MergeMerge two file contents into one — separate them with '---' on its own line. Empty parts are preserved as-is.TOOL
- File Remove Empty LinesRemove empty/blank lines.TOOL
- File Rename BatchBatch rename files (preview only — generates a rename plan; no files are actually modified, everything runs locally in your browser).TOOL
- File Reverse LinesReverse the order of lines.TOOL
- File Sort LinesSort lines alphabetically.TOOL
- File SplitSplit file content into chunks.TOOL
- File Strip BOMStrip UTF-8 BOM from file content.TOOL
- File TOML to JSONConvert simple TOML to JSON.TOOL
- File Trim WhitespaceTrim trailing whitespace from lines.TOOL
- File XML to JSONConvert simple XML to JSON. Flat leaf elements map to keys; repeated sibling tags are collected into an array, so later values are not lost.TOOL
- File YAML to JSONConvert YAML to JSON via js-yaml — supports nesting, lists, anchors and multiline scalars (YAML 1.2 core schema).TOOL
- UTF-8 Sanitize (Lone Surrogates)Sanitizes text to valid UTF-8: lone surrogates are replaced with U+FFFD; any other input is returned unchanged. This is not a general encoding converter — GBK/Shift-JIS/Big5 and other encodings are not decoded.TOOL