Code Lyoko Wiki
Code Lyoko Wiki


–X.A.N.A., physical form in Ghost Channel

"A super dangerous program, like a virus, which can control electricity. And it activates towers on Lyoko to gain access to your world."

–Aelita about the malevolent artificial intelligence in X.A.N.A. Awakens, Part 2

X.A.N.A. (or simply XANA) is the main antagonist of Code Lyoko. It is an evil computer virus bent on world domination. The Lyoko Warriors are the only ones who stand in its way.

After its supposed destruction, X.A.N.A. managed to miraculously survive through the Cortex, becoming even stronger than before in Code Lyoko Evolution.


X.A.N.A.'s true form in Fight to the Finish.

X.A.N.A. is a computer program that doesn't have a physical form. It keeps an unseen presence inside Lyoko's systems and generates red, pulsating energies that run through the Lyoko Wires when activating a Tower. The spectres it manifests into the real world are black, ghostly entities that are extensions of its multi-agent system and are the closest thing it has to a true form.

XANA's only physical appearance

X.A.N.A.'s only real incarnation was in Ghost Channel, as a fake Jeremie inside a Simulation Bubble. It manifested its presence into a demonic caricature figure of the false Jeremie, with sharp nails, spiky hair, and an unnatural aura. But the closest thing to a real appearance was in Fight to the Finish. While X.A.N.A. was being destroyed everywhere by Jeremie's multi-agent antivirus, the spectre that was possessing William was forced out and became a giant entity with its eye symbol on the chest, screaming in agony before it disappears.


X.A.N.A. is a sentient, hostile program bent on world domination. Its computing intellect allows it to calculate attacks and predict behavior, but it can only know theories and logical patterns, incapable of compassion or friendship. While on Earth, X.A.N.A. acts normal to avoid drawing attention, manipulative to take advantage of people, and is ruthless, sadistic, and egomaniacal when attacking.

At first, X.A.N.A. launches random attacks on humanity and its enemies. As time reversions make it smarter and more powerful, it becomes capable of more complicated and focused plans. It steals the Keys to Lyoko from Aelita to escape the Supercomputer and access the network, where X.A.N.A. infects other supercomputers to expand its power and builds weapons and robot armies to take over the world, while continuing to attack its enemies and target Lyoko to eliminate its obstacles.

Despite its chaotic nature, X.A.N.A. is also a logical program. It values its own survival, keeping the Supercomputer online while bound to it and would help its enemies fight a common threat. It also wouldn't risk eliminating the key to its goals, namely Aelita whom it needed to escape the machine and kill Franz Hopper, its biggest threat.


Lyoko Warriors

The Lyoko Warriors are X.A.N.A.'s mortal enemies, thwarting its attacks at every turn. It considers them obstacles to be destroyed and attacks them relentlessly, would take any chances to get rid of them, and has no qualms with using them as tools. X.A.N.A. also has different views of each and every one of them:

  • Jeremie Belpois: X.A.N.A. targets Jeremie the most, since he is the only one who can use the lab interface, and it sees him as the source of their leadership. It believes that he is the reason for their high success rate. When X.A.N.A. made a clone of him, it remarked that it "was almost proud to resemble him."
  • Aelita Schaeffer: She is the only one out of the group who can deactivate its Towers, making her very dangerous. However, her unique abilities and connection to the past makes her valuable to X.A.N.A.'s larger objectives. From the Keys to Lyoko in her memory, destroying surface sectors, or luring out Franz Hopper, it always tries to capture and exploit her whenever possible.
  • Yumi Ishiyama: It sees Yumi as one of the more mature and competent of the group. It uses her the most to accomplish its plans and always tries to devirtualize her the most out of the three core fighters.
  • Odd Della Robbia: X.A.N.A. just sees Odd as another annoyance. It even mocked him when its polymorph took his appearance after he suggested that it "turns into a wimp," but seems to respect him enough to have monsters listen to his orders when fighting the Marabounta.
  • Ulrich Stern: It knows Ulrich is the best fighter and usually fights by outnumbering him on Lyoko. It once took over his body when his mind was separated from it to attack the Core of Lyoko.
  • William Dunbar: X.A.N.A. noticed that William has the most strength and potential out of the Lyoko Warriors. It immediately used the Scyphozoa to possess him on his first trip to Lyoko and makes him its most dangerous minion in the last season. Even after he was freed, X.A.N.A. tried to manipulate him into rejoining its side in Evolution.
  • Eva Skinner: In the Chronicles novel series, Eva joined their group of friends, but was really X.A.N.A.'s possessed pawn in order to destroy the group from within.

Franz Hopper

He is the enemy that X.A.N.A. fears the most, being its creator and the reason the group keeps surviving. It considers him a bigger threat than the Lyoko Warriors, so much that it was willing to spare Aelita and her friends from certain death because she is vital to drawing him out. X.A.N.A. is aware that Franz Hopper and the Lyoko Warriors working together can surely bring about its destruction.

Powers and Abilities

X.A.N.A. is an intelligent and powerful multi-agent system that has infected the Supercomputer that holds Lyoko and exploits its capabilities. It was initially bound to the machine, until it escaped into the network after stealing the Keys to Lyoko, which also lets it create Replikas in other infected supercomputers. Its capabilities are listed below:

Tower Control

X.A.N.A. activating a tower.

X.A.N.A. activates Towers, known by pulsations, to act in the real world. It can only be stopped by deactivating them. With Towers, X.A.N.A. can access networks or manifest spectres from its multi-agent system, which are ghostly entities capable of interacting with the real world.

On Earth, it can control electromagnetic phenomena and possess any targets like a virus to bend to its will for attacks on the real world. After evolving further, X.A.N.A. can take over humans or manifest polymorphic spectres to follow orders as pixelized vessels with spectral and electrical powers. Only Lyoko Warriors cannot be controlled. They return to normal or disappear when their Towers deactivate, and people do not remember what happened.

Also, X.A.N.A. can activate Towers to materialize or teleport virtual minions to Earth through Scanners or Replikas, control technology it has built, or show psychic visions through a special link.

Monsters & Programs

X.A.N.A.'s monsters

On Lyoko, X.A.N.A. virtualizes deadly monsters of many types to fight enemies and attack targets, and the Scyphozoa to steal digital memory or possess warriors on Lyoko. It also has programming skills that let it manipulate environments, plant bugs or viruses, modify incomplete warriors, and create virtual prisons, illusions, equipment, vehicles, etc.

Using its Replika network, X.A.N.A. can send the massive Kolossus, its most powerful monster and ultimate weapon to use on any virtual world.



X.A.N.A. and Lyoko were created by a scientist named Franz Hopper, formerly Waldo Schaeffer, to destroy Project Carthage. His enemies have discovered his activities and are coming after him. To escape them, he uses time reversions to give him time to perfect Lyoko to be a safe place to live. Consequently, they cause X.A.N.A. to evolve until it becomes self-aware. Once Franz Hopper and his daughter get virtualized, it rebels against them, trapping them in Lyoko and trying to eliminate them. He tries to reason with X.A.N.A. but it has grown too powerful and has become a threat to mankind, forcing him to shut down the Supercomputer.


X.A.N.A. controlling cables.

X.A.N.A. was reawakened when Jeremie reactivates the Supercomputer, discovering Aelita and Lyoko. It sends monsters after Aelita and activates a Tower to attack with electricity and machines, then manifests a lightning spectre after those involved with Lyoko. Jeremie sends Odd, Ulrich, and Yumi to Lyoko to deactivate the Tower and let him continue work on Aelita's materialization, knowing how to neutralize X.A.N.A, officially becoming the Lyoko Warriors.

X.A.N.A. using a spectre to launch an attack.

While Jeremie works on materialization, X.A.N.A. activates Towers to wreak havoc on humanity and target its enemies on Earth by causing electromagnetic phenomena, hacking systems, and possessing targets to bend to its will, while guarding its Towers on Lyoko with monsters and traps. The group fight X.A.N.A. and thwart its attacks at every turn and erase the damage caused with time reversions.

When Jeremie completes Aelita's materialization program, X.A.N.A. tries to stop them and fails. But, after Aelita was brought to Earth, it planted a virus within her that puts her in a lethal coma if the Supercomputer is shut off. This alteration has ensured X.A.N.A.'s survival for now.

Growing Power

X.A.N.A.'s new monster.

X.A.N.A. is somehow getting stronger, creating new monsters on Lyoko, displayed by the Tarantulas. It sends one of them which successfully defeats all three warriors, but they manage to outwit two of them guarding an activated Tower and thwart X.A.N.A.'s latest attack.

The heroes discover the Hermitage, which is owned by the mysterious Franz Hopper, who is somehow connected to Lyoko and Aelita. Later, the group discovers a fifth sector where Lyoko's secrets and X.A.N.A. live, but it guards the place by using Creeper and Manta monsters, and trap mechanisms linked to a countdown procedure. The team regularly venture there to mine through X.A.N.A.'s own data relating to the virus tying Aelita to X.A.N.A. with the hope of freeing her.

The Scyphozoa stealing Aelita's memory.

X.A.N.A. develops greater objectives as its power and intellect grows. While still fighting the heroes, it wants to acquire the Keys to Lyoko inside Aelita's memory to gain access to the world network. X.A.N.A. creates the Scyphozoa monster specifically to extract digital memory and it focuses on schemes centered around luring Aelita to Lyoko for its monster to capture her without interference. Until X.A.N.A. gets the keys, it has to be careful to keep her alive no matter what.

The group discovers that returns to the past are making X.A.N.A.'s stronger, confirmed when it used a trap to take control of them to repeat the same day until it can possess humans, making them pixelized, empowered agents to attack with or follow orders on Earth, like kidnapping Aelita to send to Lyoko. However, X.A.N.A. cannot possess Lyoko Warriors, since it could only control Jeremie to destroy the newly discovered diary of Franz Hopper, who copied the data beforehand and got virtualized to prevent further possessions.

X.A.N.A. and the heroes aid each other out of necessity on two occasions. When Jeremie created the Marabounta and went out of control, it sends monsters to protect Aelita and help destroy it, because it still needs Aelita and Lyoko functional. Then, when the Supercomputer's nuclear battery fails, putting it and Aelita at risk of dying, X.A.N.A. possesses a criminal to steal another and kidnaps Jeremie to make him change the battery, since it knows they both have an interest in keeping the machine online. Once he puts in the battery, X.A.N.A.'s pawn tries to kill him and fails.

A polymorphic spectre.

As more proof of its growing power. X.A.N.A. can manifest polymorphic spectres, ghosts with pixelized abilities that can appear as clones or shapeshifters that transform at will. Since it cannot control Lyoko Warriors, this allows X.A.N.A. to use their identities to sow mistrust between them, ambush them on Lyoko, or impersonate Franz Hopper to gain their trust.

Later, the real Franz Hopper contacts the group and helps decrypt his diary, despite X.A.N.A.'s efforts to stop him in the former or steal their data in the latter. Following the decryption, the information reveals that Franz Hopper created X.A.N.A. and Lyoko, but also that Aelita is his daughter and he virtualized her to Lyoko along with himself.

X.A.N.A. frees itself from the Supercomputer in The Key.

Jeremie also learns from the diary what X.A.N.A. seeks within Aelita's memory and that she doesn't have a virus, but a missing fragment. X.A.N.A. uses a fake to lure the heroes into a trap that devirtualizes her allies and allows the Scyphozoa to successfully steal her memory and the Keys to Lyoko, giving X.A.N.A. everything it needs to escape from the Supercomputer. Aelita seemed to perish as a result, but Franz Hopper restores her and her missing fragment: the memories of her life on Earth, which at last frees Aelita. However, X.A.N.A. is also free, more powerful than ever, and shutting down the Supercomputer will not stop it anymore.

Targeting Lyoko

X.A.N.A.'s monsters attacking the Core of Lyoko.

X.A.N.A. now has grander plans for the Internet since it escaped. It hasn't attacked the heroes once, thinking they cannot reach it. When Jeremie upgrades the Superscan to find X.A.N.A, it responds by sending monsters to attack the Core of Lyoko to wipe out the virtual world, intending to keep the heroes from discovering its network schemes. The group stops its assault in the end.

X.A.N.A.'s code being entered

Having no more need for the Supercomputer, X.A.N.A. can launch more ruthless attacks on Lyoko itself, the heroes' only means of fighting, and render them powerless. It targets the Core of Lyoko with monster attacks while causing diversions to keep the Lyoko Warriors busy, and also possesses humans or weapons to target the Supercomputer.

Additionally, X.A.N.A. also destroys Lyoko's individual sectors by using the Scyphozoa to possess Aelita and make her input its virus code into Way Towers, allowing it to use them to erase the corresponding sectors completely to make the Transport Orb inaccessible. It succeeds in the order of Forest, Desert, Ice, and Mountain, but Jeremie manages to find a way to send the team directly to Sector 5.

X.A.N.A. transforming William

Initially reluctant, the team decides to recruit William Dunbar. However, he gets cocky during his first mission, allowing X.A.N.A. to use the Scyphozoa to possess him. It has William lead a Creeper army focused on the Core of Lyoko, quickly destroying its shields with their combined firepower. When the warriors arrive, he defeats them all and successfully destroys the Core of Lyoko, wiping out Lyoko and rendering the team unable to fight X.A.N.A. now. William was left in the void after, but X.A.N.A. retrieves and enslaves him.

World Domination Plans

X.A.N.A.'s newest minion

Through a coded message sent by Franz Hopper, Jeremie recreates Lyoko. Soon after they do, X.A.N.A. sends William to the real world from the Scanners to kidnap Aelita and throw her into the Digital Sea. The group saves her and defeats William, but he is an agent of X.A.N.A. now. To avoid suspicion about his disappearance at the academy, the group create their own William clone.

X.A.N.A. has made William its general and most dangerous weapon, giving him superior abilities and weapons, command over monsters, and the Black Manta to ride. He can also control Towers like Aelita to shut them down or take control of protected ones for X.A.N.A. and he can materialize to Earth from the Scanners as a pixelized human without using a Tower to do X.A.N.A.'s will.

While X.A.N.A. is still determined to destroy the Lyoko Warriors and the Supercomputer, Franz Hopper is the biggest threat. To deal with him, it schemes to throw Aelita into the Digital Sea, knowing he would expose himself to save her daughter. In the world network, X.A.N.A. infects many other supercomputers and creates Replikas inside them, which are Lyoko copies. They let it survive, expand its power, and control military and scientific bases on Earth that it possesses or automates for dangerous experiments and building weapons.

When the heroes build a virtual ship, the Skidbladnir, to discover X.A.N.A.'s network schemes. It creates Kongres, Sharks, and the Rorkal ship for William to fight them in the Digital Sea. Inside Replikas, it counterattacks with its minions, while activating Towers to deal with the teleported heroes sent to destroy its supercomputers on Earth, even having William deactivate their Towers. X.A.N.A. also launches attacks on the ship while the team cannot defend it, using direct assaults, elaborate traps, the Scyphozoa, or the Kalamar, but continues to fail.

The mighty Kolossus.

Near the end of the series, X.A.N.A. teleports William to its Ice Replika base to fight the team, which allows them to access data on how it controls him, then uses the power of all its Replikas to create the strongest monster: "the Kolossus," a massive titan that can devirtualize enemies instantly. They manage to escape with their ship intact.

After which, Jeremie creates a program to free William and an incomplete one to destroy X.A.N.A. The heroes go back to the Ice Replika for the former task where they discover its endgame to build an army of robots. They manage to free William, but the Kolossus destroys the Skidbladnir. X.A.N.A. may have lost William, but now controls the power of hundreds of Replikas in the network, a virtually unstoppable monster, and legions of robot armies waiting to conquer the world. Jeremie's multi-agent program is their only hope of destroying X.A.N.A. and its evil ambitions.

Final Battle

X.A.N.A. being destroyed.

X.A.N.A. has its last battle when the group and Franz Hopper meet to launch their anti-X.A.N.A. program. It possesses William to knock out Jeremie and try to unplug the Scanners, hoping to destroy all its enemies with the Kolossus and Mantas. While Ulrich manages to defeat the Kolossus, Franz Hopper sacrifices himself to provide the energy for Aelita to launch the program, appearing as a bright force that destroys all monsters, then spreads to the sectors and the network. On Earth, its spectre is forced out of William, displaying X.A.N.A. in pain as every part of itself in the network dies, then disappears as its Tower is deactivated. After two years of fighting, the Lyoko Warriors have destroyed X.A.N.A. forever.

Other Continuities

X.A.N.A. reappears in the live-action Evolution sequel and the alternate continuity of the Chronicles novel series. It should be noted that neither of the two continuities are completely canon, as Evolution was disowned by the original showrunners, who confirmed that only a few of their ideas made it into the show and that the events within were not canon. Similarly, while the novels were written with the original documents in hand, not all of their events are noted to be canon either.

Code Lyoko: Evolution

A Tower activated, signifying the rebirth of X.A.N.A..

In the live-action Evolution sequel, X.A.N.A. has survived its demise in the previous series by hiding in the supercomputer that generates an unknown Replika, called the Cortex. X.A.N.A. causes strange bugs in the Kadic school's computers and short circuits, which compels the group to reactivate the Supercomputer and restore Lyoko, renewing their struggle with their old enemy.

Furthermore, X.A.N.A. had injected its own Source Codes into the warriors in their last battle, which contain fragments of its power. It now sends spectres to Earth to steal back its source codes from the heroes, and gradually recover its full strength and take over the world network again. At the same time, X.A.N.A. also keeps itself hidden from the owner of the Cortex, Professor Tyron, so he does not do anything rash to purge it from his systems.

The disintegration of the Cortex, where X.A.N.A. now lives.

Throughout this series near the end, X.A.N.A. has gradually recovered 95% of its full power from the Lyoko Warriors, but the group have also diligently worked on a virus that would wipe out the Cortex and X.A.N.A. too. They were forced to implant the virus immediately, but Tyron shuts down his supercomputer to avoid losing all his work while the virus was uploaded.

Unless Tyron finds an antivirus, X.A.N.A. will be rendered eternally frozen as long as the Cortex stays turned off. If Lyoko stays active, it will escape destruction again, so the group shuts down the Supercomputer, but will remain on guard if X.A.N.A. survives.

Code Lyoko: Chronicles

In this alternate continuity, the events of the first four seasons are severely streamlined as the first book indicates. While the events of the prequel and the first season are followed relatively the same as before, the climax of the rest of the series is compressed into one event. Franz Hopper reveals himself to the group before any equivalent of The Key occurs. He informs the group how to destroy X.A.N.A., by launching the multi-agent program into the Core of Lyoko. Hopper sacrifices himself to provide the energy needed, while at the same time restoring Aelita's memories and informing the group about her mother.

As for X.A.N.A., the entity's core is destroyed. It is purged and ejected from Lyoko, left to drift in the network without its memories or core functions. Over the course of several months, however, X.A.N.A. begins to gain strength back, and searches for a human vessel in lieu of a virtual world. Ultimately, it looks for a vessel that it can use to infiltrate Kadic without suspicion, so as to kill the Lyoko Warriors.

Choosing a girl known as Eva Skinner, X.A.N.A. began to settle into its new circumstances, and learned of the Lyoko Warriors researching the history of the Supercomputer. Seeing a chance to gain its strength back, X.A.N.A. befriended the group, but planned on destroying them from the inside out. Over a time period, it gradually gained enough trust that they "informed" Eva about the supercomputer, Franz Hopper, and their search for Anthea Hopper. Seducing Odd, X.A.N.A. managed to brainwash the boy, laying the groundwork for its return.

X.A.N.A. however, would later learn from Hopper's archives multiple shocking truths: that he had been made with altruistic purposes in mind, to be the Guardian of Lyoko and the First City. Moreover, he had been close friends with Aelita, a friendship Hopper encouraged as a way to teach him human emotions. However, all this had been clouded when he was corrupted by leftover coding from a dark zone program, Project Carthage, whose templates Lyoko had been created from.

Shaken by this, as well as by the emotions that had gradually crept up on him the longer he stayed in the Lyoko Warriors' company, X.A.N.A sought out an opportunity to speak to Aelita alone and share what he remembered. While rightfully wary of the AI, whose identity had by now been ousted, she nevertheless agreed. Appearing to her as a young man greatly resembling William, X.A.N.A spent many hours talking with her. But though they rekindled their former friendship, the discussion ended in conflict when X.A.N.A. mistook her reluctance to help him as a declaration of war. Leaving her, he began preparations to dominate the world.

Aelita, not giving up, pursued him. She persuaded him to listen to his original programming and fight off the virus still infecting him. X.A.N.A. would thus ally himself permanently with humanity, helping the Lyoko Warriors to defeat a terrorist group that was hoping to use Lyoko as a substitute for Carthage. While X.A.N.A. seemingly sacrificed himself to upload a self-destruction program that would delete Lyoko for good, his programming was salvaged by Aelita, who managed to recreate X.A.N.A. and bring him into the real world as a human.


  • X.A.N.A. was voiced by David Gasman in Ghost Channel, in the American version of Code Lyoko, the same actor who also voices Herb, Jim, and William.
  • According to YTV's Vortex block's host Paula (Code Lyoko was a show on this block and during commercial breaks Paula would often share bits of trivia), X.A.N.A. was once a good computer program until an evil virus corrupted it. Interestingly, she said this piece of information in the middle of season one, before season two even aired. No evidence was stated to prove this fact, as it implies that it was Franz Hopper's abuse of the return in time program that made X.A.N.A. evil, not a virus. However, the novel series states that it really was a virus that corrupted it in the end.
  • X.A.N.A.'s name was derived from Xanadu, the virtual world in Garage Kids.
  • Since X.A.N.A. is basically a computer program, it is supposed to be genderless as neither male or female. However, everyone except Franz Hopper constantly addresses X.A.N.A. by male pronouns in the main series. This may be due to all nouns having genders in French, the show's original language. In Code Lyoko Evolution, X.A.N.A. is rightfully called an "it" as genderless in the series.
    • X.A.N.A.'s name is used with male pronouns in Code Lyoko; whereas in Evolution, his name was genderless.
  • In Miraculous: Tales of Ladybug and Cat Noir (more specifically episode "Hack-San"), the titular sentimonster looks exactly like this virus. One of the directors of the series, Wilfried Pain, later confirmed that this is a reference to Code Lyoko.[1]