A sword bayonet is any long, knife-bladed bayonet designed for mounting on a musket or rifle. Its use is thought to have begun in the 18th century and to have reached its height of popularity throughout the 19th and into the early 20th centuries. When unmounted from a musket or rifle, sword bayonets with their typical hilts and long blades also could be wielded as short swords. While modern military bayonets typically have knife blades, they are usually too short to be called sword bayonets and are more akin to fighting/utility knives.
Sword bayonets originated for use with muzzle-loading rifles. A typical example of an early sword bayonet is the 58 centimetre (23 inch) blade variety designed for the Infantry rifle, later called the Baker rifle of the Napoleonic era British Army.
Most infantry would routinely keep bayonets fixed to their inaccurate smoothbore muskets throughout a battle. Close order ranks and squares presented a hedge of bayonets to the enemy, which was especially useful for deterring cavalry. But a fixed bayonet - a pound or so of extra metal on the front of a firearm - seriously affects a firearm’s balance and hampers accurate shooting. A rifleman usually fought without a fixed bayonet since accuracy was the whole point of his rifled weapon. He therefore required a side-arm that could be drawn and used instantly in an emergency so his bayonet had a cutting edge and a grippable hilt. That such bayonets were far heavier than standard socket bayonets was not a disadvantage since they were rarely fixed.
(In truth, most riflemen found it worked better for cutting brush and roasting meat over a fire. (see Rifleman Harris, Costello's, Simmons's diaries))
On occasion riflemen did form up in close order. Since rifles were shorter than muskets their bayonets needed to be longer to produce the same total length; the sword bayonet answered this need.
As well as rifle regiments, other soldiers whose battlefield role did not involve standing shoulder to shoulder in ranks, notably sergeants, also came to use sword bayonets. By the end of the nineteenth century all infantry had become riflemen and the sword bayonet had become the standard infantry bayonet.