Starfleet ranks and insignia are fictional titles and badges that form the hierarchy of Starfleet in the TV show Star Trek and its spinoffs. Starfleet's ranks are based on those used by the United States Navy.
In the original series and Star Trek: The Motion Picture, ranks are indicated by sleeve stripes; in later movies based on the original series, ranks are indicated by pins on a shoulder strap. In later television series, rank is indicated by a varying number of pips.
Some licensed Star Trek publications present insignia that sometimes contradict the ones shown on screen or in other publications. For example, the second and third editions of The Star Trek Encyclopedia offer differing insignias for various Starfleet ranks. Additionally, some Star Trek publications, including officially licensed ones, posit additional ranks that are not seen or spoken of in live action productions.