A good way to think of it is like branches on a tree. Here is a visual aid. Way back before the Triassic (Or just after it, depending on who you ask) the common ancestor of all reptiles evolved. This is one species, mind you. It split into two groups: Archosaurs, and Other Reptiles. Other Reptiles is basically things like turtles, lizards, snakes; pretty much all reptiles, except for birds and crocodiles. At some point early in the Triassic period, Archosaurs split further, into two types. One type includes crocodiles and a bunch of other extinct groups, and the other (called Avemetatarsalia) includes dinosaurs, pterodactyls, and plesiosaurs. Avemetatarsalia’s common ancestor split off into a single species that led to all dinosaurs, a single species that led to all pterodactyls, and a single species that led to all plesiosaurs. This all happened in the Triassic.
Now, the first dinosaurs were probably similar to later theropods (two-legged, meat eating dinos like t-rex or velociraptor). They quickly split into two main groups: Bird-hipped dinos, and lizard-hipped dinos. Bird hipped (Ornithischia) dinosaurs include things like duck-billed dinosaurs (Hadrosaurus), armored dinosaurs (Ankylosaurus), horned/frilled dinosaurs (Triceratops), etc. There’s a lot of variety here. By contrast, lizard-hipped dinosaurs (Saurischia) evolved into fewer main groups: Prosauropods (primitive sauropods), sauropods (Long necked giant dinos), and theropods. Surprisingly, birds evolved from theropods, who were lizard-hipped, not bird hipped.
Theropods are nearly universally carnivorous. That’s where you find things like t-rex, velociraptor, etc. Feathers appear to be pretty common here, even among the larger dinos (such as t-rex). Some time between the middle Jurassic and early Cretaceous, depending on who you ask, a group of theropods got strong enough arms and specialized feathers and began gliding. A few million years later, they developed powered flight. It’s worth noting that this is the second time vertebrates evolved powered flight, following the triassic pterosaurs. The third time vertebrates learned to fly was about 50 million years ago, with the first bats.
So, to answer your question with far more information than you probably wanted, not all dinosaurs became birds. Only one dinosaur became a bird, actually. There may have been more than one species of flying, feathered dinosaur, but all birds came from one species.