Live Demo: https://codeynamics.github.io/stl-sanitizer/
A modern web-based tool to clean up STL file names and convert between ASCII and binary formats. Built with Svelte and TypeScript.
- Name Sanitization: Remove spaces and special characters from STL filenames
- Format Conversion: Convert between ASCII and binary STL formats
- Smart Naming: Automatically fix
solidandendsolidnames in ASCII STL files - Batch Processing: Handle multiple files at once
- ZIP Export: Download all processed files as a single ZIP archive
- Modern UI: Clean, dark-themed interface with glassmorphism effects
Or run locally:
- Choose STL Files: Click "Choose STL Files" to select one or more STL files
- Select Options:
- Sanitize Names: Remove spaces and special characters (replaces with underscores)
- Convert to ASCII: Convert binary STL files to ASCII format
- Convert to Binary: Convert ASCII STL files to binary format
- Fix Solid Names: Update
solidandendsolidlines to match filename
- Convert: Click "Convert Now" to process your files
- Download: Review the changes and download your processed files as a ZIP
Cleans up filenames by:
- Removing spaces and special characters
- Keeping only alphanumeric characters and underscores
- Handling duplicate names by adding
_1,_2, etc.
Converts binary STL files to human-readable ASCII format. Automatically applies solid name fixing.
Converts ASCII STL files to compact binary format for smaller file sizes.
Updates the solid and endsolid declarations in ASCII STL files to match the filename. Handles multiple solids in a single file by appending _1, _2, etc.
- Node.js v18 or higher
# Clone the repository
git clone https://github.com/Codeynamics/stl-sanitizer.git
cd stl-sanitizer
# Install dependencies
npm install
# Run development server
npm run devnpm run buildThis project is configured for automatic deployment to GitHub Pages via GitHub Actions. Simply push to the main branch and the site will be automatically built and deployed.
- Svelte: Reactive UI framework
- TypeScript: Type-safe JavaScript
- Vite: Fast build tool
- JSZip: ZIP file generation
Works on all modern browsers that support:
- ES6+ JavaScript
- File API
- ArrayBuffer
- Blob URLs
MIT License - feel free to use this project for any purpose.
Contributions are welcome! Please feel free to submit a Pull Request.
Built with ❤️ for the 3D printing and simulation community