A kodachi (小太刀 or こだち?), literally translating into "small or short tachi (sword)", is a Japanese sword that is too short to be considered a long sword but too long to be a dagger. Since this sword was only about 59 cm in length, it did not exceed the blade length limits of non-samurai during the Edo period and could be worn by merchants.
A kodachi's length is similar to that of the wakizashi, and though the blades differ greatly in construction, the kodachi and the wakizashi are similar enough in size and technique that the terms are sometimes (mis)used interchangeably. While the kodachi was a set length, the wakizashi was forged to complement the height of its wielder or the length of the katana it was paired with, and thus varied. The kodachi also features greater curvature than a wakizashi, and typically has a longer handle.
The prefix 小 "ko-" literally means "small", though in context means "short", and can be attached to any of the names of specific types of swords to indicate something shorter than "normal". As the prefix "ō-" can mean "great" or "long", it follows that the opposite end of this length spectrum of the tachi is the ōdachi.