In addition to the standard output, you can save the raw binary STM trace data to a file using the --output-raw option.
For example, you can convert an STM trace file to ASCII format and save the raw binary data at the same time:
nrfutil trace stm --input-file stm_trace.bin --output-raw processed_trace.bin > decoded_trace.txt