Riddikulus is the Boggart-Banishing Charm. A Boggart takes the form of its victim’s greatest fear; the charm makes that form more comical, prompting the laughter through which the creature is banished. The official Harry Potter encyclopedia records Remus Lupin teaching the spell to his Defence Against the Dark Arts class. It is therefore a creature-specific response: the documented purpose is to banish Boggarts, not to alter any target a caster finds frightening.
The official fact file describes a sequence rather than a simple transformation. A Boggart assumes the form of its victim’s greatest fear. Riddikulus changes that presentation into something comical, and the resulting laughter leads to the Boggart’s banishment. The charm’s named purpose is to banish Boggarts. The source does not say that the incantation changes ordinary objects or other magical creatures, so this page does not extend its effect beyond that target.
The encyclopedia calls the charm technically harmless, while warning that an unsuspecting person who encounters a Boggart may suffer serious psychological distress. This distinction matters: the spell’s comic effect is directed at the creature’s frightening appearance, but encountering the fear-form can still be upsetting. The source does not specify a guaranteed joke, a fixed number of castings, or that every Boggart presents the same image to different people.
Lupin teaches Riddikulus to his Defence Against the Dark Arts class, and the official encyclopedia says the lesson produces many amusing results. The scene makes the charm part of a practical classroom exercise: students must confront a Boggart and use the spell to replace its frightening presentation with a comic one. The official fact file records the spell’s appearances in Prisoner of Azkaban and Order of the Phoenix.
A separate official guide recalls Neville Longbottom imagining Professor Snape in his grandmother’s clothes as a comic Boggart form. This example illustrates the principle without making the spell a general-purpose illusion: the transformed appearance belongs to the Boggart’s fear-form. Laughter is not just decoration in the scene; it is identified as the means by which the Boggart is defeated.