from text to bin