From the Super Mario Wiki
First appearing in Super Mario Bros. 2, there is no apparent consensus as to the "proper" interpretation of Ninji's original sprite. In artwork, Ninji were originally rendered with large eyes and sharp teeth, but other appearances seem to depict them in a ninja-like outfit due to their eyes shaped more like rectangular eyeholes, and their teeth replaced by round buttons or cheek-blushes.
Super Mario series
Super Mario Bros. 2
Ninjis make their debut appearance in Super Mario Bros. 2 and also appear in the game's SNES remake, which is part of Super Mario All-Stars, and its Game Boy Advance remake, Super Mario Advance. In these games, Ninjis serve Wart, a mischievous monster who had siezed control of the dream world known as Subcon. There are two types of Ninji: the first type charges at Mario, suddenly jumping as it approaches; the second type remains in one place and jumps up and down. In Super Mario Advance, Giant Ninjis appear as somewhat rare enemies. These giant Ninjis use the same attack pattern as their smaller counterparts, either jumping in place or charging towards a character. Like most enemies in Super Mario Bros. 2 and its remakes, all variations of Ninjis can be picked up and thrown at other enemies to defeat them. If the player picks up and throws a Giant Ninji, it will yield a heart upon defeat if it lands on a solid surface.
Super Mario World
Ninjis also appear in Super Mario World, using their previous 8-bit sprites. In this game, they serve Bowser during his rule of Dinosaur Land. They only appear in the Front Door and Back Door courses, where they blend in the darkness and are difficult to see unless the searchlight is activated. The 1991 Mario Mania Nintendo Player's Guide describes Ninjis as Mini-Ninjas, stating that they have been driven mad by their isolation in Bowser's Castle. They jump in place and can be defeated with stomps, fireballs, or a cape attack. They are one of the few enemies not seen in the credits.
The Super Mario Bros. Super Show!
Despite appearing prominently in its opening sequence, Ninjis only appear once in The Super Mario Bros. Super Show!, in the episode "Karate Koopa", where they aid Karate Koopa in his plan to capture Princess Toadstool and sell her into slavery for a fortune. Somewhat parodying their namesake, they are skilled in hand-to-hand combat and speak in thick Japanese accents.
Super Mario World television series
In the Super Mario World animated series, Ninjis, here brown in color, appear in the episode "The Yoshi Shuffle" as spectators to Yoshi and Mario's football game against Bully, Big Mouth and Cheatsy and several Koopa Football Players in the Neon Castle.
Ninjis make a few appearances throughout Super Mario-Kun. Not only are they in arcs dealing with Super Mario Bros. 2, they have appeared in the first few volumes, which deal mostly with Super Mario World. Their depiction in this appearance is used in some later artwork.
Nintendo Comics System
In Nintendo Comics System, Ninjis only make minor appearances, with one appearing in the background of the story The Legend, while several, having been beaten senseless by a sleepwalking Mario who believes himself to be Dirk Drain-Head, appear in Bedtime for Drain-Head.
Nintendo Adventure Books
In Unjust Desserts, some Ninji are shrunk by Magikoopa and eaten by Yoshi, though Mario never encounters any in the dinosaur's body, only in the palace garden. In Brain Drain, if Luigi (who has had his mind switched with a Koopa Troopa's due to the Synapse Switcher) gets a serving of gooey rations in the cafeteria of Iggy Koopa's base, a Ninji he sits beside will tell him that the gray gunk is better than the blue. Some Ninjis are also spotted loitering around the WMUSH radio station when Iggy takes it over.
Super Mario Adventures
In Super Mario Adventures, spear-wielding Ninjis make several appearances, first appearing in the siege of Princess Toadstool's castle. Ninjis also appear when Princess Toadstool attempts to escape her confinement in the Koopalings' tower, aiding Wendy O. Koopa and a brigade of Koopa Troopas in stopping her escape. Later, a Ninji, apparently buying a camera from Friendly Floyd, appears at Bowser's wedding to Princess Toadstool.
The Ninjis in Hotel Mario are called Mini Ninjas but otherwise are no different from any other variety.
Paper Mario series
Paper Mario: Sticker Star
After a long absence, Ninjis appear again in Paper Mario: Sticker Star. They appear in the forest world as enemies, however they are not very powerful, making them the weakest enemy in World 3, but a little stonger than Goombas, and don't patrol like most enemies do, but they are aggressive and will chase Mario if they should see him. In the overworld, Ninjis tend to hide in the poisoned waters or trees of the forest levels much like the Bzzap!s in Paper Mario. In battle, a Ninji can either turn itself into a throwing star and hurl itself at Mario, or it can just run up to Mario and slam him. Mario must watch the positions of Ninjis; if they are jumping, they cannot be hammered, and if they are standing still, they cannot be jumped on. If they are jumped on/hammered at the wrong time, they will poof and leave a log (also known as a decoy) behind, meaning the attack will be a miss, then run back into battle while falling from the top screen. This may cause Mario to fall on his face. Ninjis can be hit with the Hurlhammer sticker even when they're jumping, but this means that the player has to have good timing or else it will not count. They can also dodge Shell sticker attacks if they are jumping. If Ninjis are sleeping, crumpled, stopped or dizzy, they will not be able to dodge Mario's jump attacks. Sometimes after battle, a Ninji may occasionally drop a Throwing Star sticker when defeated. They are quite sneaky, and dodge commonly when attacked with Mario's combat moves.
Mario vs. Donkey Kong
Mario Party Advance
In Mario Party Advance, Ninji lives on the first floor of Horror Condo. His quest involves getting him a rare Toad Force V DVD; the aforementioned DVD is only owned by Mushbert, who lives in the Mushroom Condo. After giving Ninji the DVD, he gives the player Tile Trial, a Gaddget. The ending states that he gives up cartoons and sells the DVD.
Names in other languages