Change waveform into binary in Saleae Logic Analyzer
You can add a protocol analyser from the centre of the right-hand panel. It will software-decode the waveforms into packets of whatever protocol you are investigating. From there, you can specify the radix as binary to get a binary output.

If you are looking at arbitrary waveforms, I'm not sure the software will reliably decode it. But at that point, a protocol analyser couldn't tell you any more than simply looking at the screen!