# Sharecrate Safe File Names > Make file names safe for Windows, macOS, Linux and ZIP files, and fix duplicates. Paste file names, one per line, and get names that work everywhere: no characters Windows refuses, no reserved device names like CON or NUL, no hidden text-direction characters that disguise an extension, Unicode in the composed form (NFC), no trailing dots or spaces and at most 200 bytes with the extension kept. Names that become equal are numbered the way Sharecrate does it, and program extensions are flagged. Part of usefulweb.site (https://usefulweb.site/). Part of [Sharecrate](https://sharecrate.usefulweb.site/) (ownerApp: sharecrate). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://sharecratesafefilenames.usefulweb.site/ (interactive tool at https://sharecratesafefilenames.usefulweb.site/tool) - JSON API: POST https://sharecratesafefilenames.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://sharecratesafefilenames.usefulweb.site/api/v1/tool) - OpenAPI: https://sharecratesafefilenames.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://sharecratesafefilenames.usefulweb.site/mcp - tool `sharecrate_safe_filenames` ## Inputs - names (textarea): File names (one per line) - Paths are cut to their last part. At most 2000 names. - dedupe (boolean): Number names that become equal (photo (2).jpg) ## Method - Each name is converted to Unicode NFC, then control characters, bidirectional controls (U+202A–U+202E, U+2066–U+2069, U+200E/U+200F, U+061C) and zero-width characters are removed. - The characters / \ : * ? " < > | become _, repeated spaces collapse to one, and dots or spaces at the start and end are removed (Windows drops trailing ones; leading dots hide files on macOS and Linux). - Windows device names (CON, PRN, AUX, NUL, COM0–9, LPT0–9 and their superscript forms) get an underscore, also when they have an extension. Names longer than the byte limit are shortened before the extension. - Duplicate detection compares names case-insensitively, like Windows, macOS and the Sharecrate drive; later names get “ (2)”, “ (3)” … before the extension. - Program and macro extensions (.exe, .js, .docm …) and double extensions like .pdf.exe are flagged, not changed.