ASCII <-> Binary STL Converter

by ByteMuse, published

ASCII <-> Binary STL Converter by ByteMuse Dec 30, 2012


Liked By

View All
Poor man's dust mask

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

12547Views 1599Downloads Found in 3D Printing


A simple ruby script that converts STL files between ASCII and binary encoding.


A utility for converting STL files between ASCII and binary encoding. I wrote this to save disk space and bandwidth when handling STL files. Some modeling programs include this functionality, but it is nice to have something that is more lightweight and can be called from a command line.

For usage and to contribute:

More from 3D Printing

view more

All Apps

Upgrade this Thing with Thingiverse Apps

No results.

Excellent - just what I needed!

You should change "#!/usr/local/bin/ruby" to "#!/usr/bin/env ruby". This will allow this script to run unedited on many more systems, my own included.

It runs fine on Linux as soon as you have installed ruby (see: http://stackoverflow.com/questions/18541695/installed-ruby-using-apt-get-install-ruby-2-0-0-succeeded-but-not-using-correct)http://stackoverflow.com/quest.... So thanks a lot! It solves perfectly my OpenSCAD -> ASCII STL -> Binary STL -> MeshLab previous issue. Great job! ;D

How do you run a ruby script in windows?