Yes, ninjas were a real thing. No, they didn't habitually wear all-black pajamas and carry straight-bladed katanas - not until the 1980s, anyway. It's taken me years to decide it was okay to add a couple of decent quality "ninjato" to this website, but since I've started a Film and Fantasy section where I can cross-index them to the more traditional Japanese swords, here are a couple of select examples.
The main ninja clans/schools were the Iga and the Koga. This "Iga Ninja-to" is made by Hanwei, who are known for their Japanese (and European!) sword-crafting. The hand forged blade is differentially clay-tempered 1566 high carbon steel, sharp and functional. The fittings are blackened/antiqued iron, with synthetic same' and a cotton-braided wrap tsuka-ito. The saya is wrapped with rattan has a reinforced spike kojiri. This is top quality workmanship.
length: 33 3/4"
blade: 22 3/4"
blade width: 1 1/4" at tsuba
blade width: 7/8" at 2" from tip
tsuka: 10 5/8"
tsuba: 3" square
blanace point: 3 3/8 from tsuba
weight (sword): 2 lb 3.5 oz
weight (sword and saya): 3 lb 2.0 oz