The GIMP is a free, cross-platform image
manipulation program. It currently supports only 8 bit files, but it's
still quite useful. Try "convert foo-16.pgm -depth 8 foo-8.pgm" to convert
the 16 bit depth file "foo-16" to an 8 bit version that The GIMP can read.