Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchSome links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
Open princejs.com to play Prince of Persia in a modern browser. PrinceJS is an HTML5/JavaScript reimplementation based on the MS-DOS version, so you do not need to download an emulator, install a plug-in, or obtain game files.
Play Prince of Persia now
Go to https://princejs.com, click or tap inside the game window, and press a key to continue past the title screen. If the main site is unavailable, try the project’s GitHub Pages version.
The PrinceJS repository lists a Summer Release dated May 22, 2026. It describes the project as an HTML5/JavaScript reimplementation of the MS-DOS version of the classic game.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Keyboard controls
| Key | Function |
|---|---|
| Left / Right | Move, or advance and retreat during combat |
| Up | Jump, climb up, or block with the sword |
| Down | Crouch, crawl, climb down, or put the sword away |
| Shift | Drink a potion, grab a ledge, pick up the sword, or strike |
| Space | Display the remaining time |
| Enter | Continue through an introductory or transition screen |
When you reach the sword, press Shift to pick it up. In combat, use Left and Right to control distance, Up to block, and Shift to attack. Space is not the attack key.
#1 Best Overall
Playing on a phone or tablet
PrinceJS documents a mobile mode, but the game is easier to control with a physical keyboard. For touch play:
- Open princejs.com in your mobile browser.
- Rotate the device to landscape orientation.
- Keep the game open in a single browser tab.
- Use tapping and dragging across the game area for touch input.
- Optionally add the page to your home screen for a more fullscreen-style launch.
Touch controls can be less precise than a keyboard for running jumps, ledge grabs, and sword fights. The project recommends disabling the browser’s landscape tab bar where that setting is available.
For a more forgiving game, open https://princejs.com?strength=50. This sets guard strength to 50 percent instead of the documented default of 100 percent.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #2
- REWRITE FATE. SAVE PERSIA. DIE TRYING: Shape the legend of a Prince spared by death, whose fatal mistake doomed his people. Try your best to right your wrongs: each failure is a new chance to explore different paths, discover secrets, meet new characters, and use the knowledge gained from past attempts to change your people's fate and prove yourself as the true Prince of Persia!
- MASTER A FAST AND ACROBATIC STYLE: As the Prince of Persia, agility is your greatest weapon. Dodge traps, wall-run, chain acrobatic combos, and strike with precision. Every movement is an opportunity, and every battle will reward skill and style.
- FIGHT YOUR OWN WAY: Discover, unlock, and master over 100 unique weapons and medallions. Adapt, upgrade, and customize your build with each run, crafting deadly combinations that fit your playstyle.
- ONE MORE TRULY UNIQUE RUN: No run is ever the same. Dive back into this ever-evolving adventure, where narration, metaprogression, difficulty modifiers, random events, and procedurally generated levels will always leave you craving just one more unique run.
Controller support
The project documents controller mappings, although the exact behavior can vary by browser, operating system, and controller:
- Left/right stick or D-pad: move.
- A, R, or ZR: jump, climb, or block.
- B, Y, L, or ZL: drink a potion, grab a ledge, or strike with the sword.
- X: show the remaining time once; restart the level twice.
- Minus / Plus: previous or next level.
- Any button: continue the game.
Optional URL settings
PrinceJS supports URL parameters for readers who want to adjust a session:
| Parameter | Documented range or default |
|---|---|
level |
Current level, 1–14; default 1 |
health |
Maximum health, 3–10; default 3 |
time |
Remaining minutes, 1–60; default 60 |
strength |
Guard strength, 0–100; default 100 |
width |
Game width in pixels; 0 fits the screen |
For example:
https://princejs.com?level=1&health=3&time=60&strength=100&width=0
Rank #3
- REWRITE FATE. SAVE PERSIA. DIE TRYING: Shape the legend of a Prince spared by death, whose fatal mistake doomed his people. Try your best to right your wrongs: each failure is a new chance to explore different paths, discover secrets, meet new characters, and use the knowledge gained from past attempts to change your people's fate and prove yourself as the true Prince of Persia!
- MASTER A FAST AND ACROBATIC STYLE: As the Prince of Persia, agility is your greatest weapon. Dodge traps, wall-run, chain acrobatic combos, and strike with precision. Every movement is an opportunity, and every battle will reward skill and style.
- FIGHT YOUR OWN WAY: Discover, unlock, and master over 100 unique weapons and medallions. Adapt, upgrade, and customize your build with each run, crafting deadly combinations that fit your playstyle.
- ONE MORE TRULY UNIQUE RUN: No run is ever the same. Dive back into this ever-evolving adventure, where narration, metaprogression, difficulty modifiers, random events, and procedurally generated levels will always leave you craving just one more unique run.
These are features of the reimplementation, not standard controls from the original game, and changing them can reduce its intended challenge.
Recommended Free Tools
Is this the exact original game?
Not literally. The first U.S. Apple II release of Prince of Persia was published on October 3, 1989, according to Jordan Mechner’s archive. PrinceJS is a modern browser reimplementation based on the MS-DOS edition, not the untouched Apple II executable running natively in a browser.
Different releases for Apple II, DOS, Amiga, Macintosh, consoles, and other platforms can differ in graphics, sound, timing, controls, level details, and presentation. PrinceJS aims to recreate the classic gameplay experience, but it should not be described as an exact reproduction of every port or as an official Ubisoft browser release.
Rank #4
- REWRITE FATE. SAVE PERSIA. DIE TRYING: Shape the legend of a Prince spared by death, whose fatal mistake doomed his people. Try your best to right your wrongs: each failure is a new chance to explore different paths, discover secrets, meet new characters, and use the knowledge gained from past attempts to change your people's fate and prove yourself as the true Prince of Persia!
- MASTER A FAST AND ACROBATIC STYLE: As the Prince of Persia, agility is your greatest weapon. Dodge traps, wall-run, chain acrobatic combos, and strike with precision. Every movement is an opportunity, and every battle will reward skill and style.
- FIGHT YOUR OWN WAY: Discover, unlock, and master over 100 unique weapons and medallions. Adapt, upgrade, and customize your build with each run, crafting deadly combinations that fit your playstyle.
- ONE MORE TRULY UNIQUE RUN: No run is ever the same. Dive back into this ever-evolving adventure, where narration, metaprogression, difficulty modifiers, random events, and procedurally generated levels will always leave you craving just one more unique run.
The project’s repository identifies its code as Unlicense-licensed. That should not be confused with an official license for the Prince of Persia name, characters, original commercial assets, or the wider franchise.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshooting
The keyboard does nothing
- Click directly inside the game area.
- Make sure the browser tab is active.
- After the game loads, try Enter or another key to continue.
- On mobile, use the touch interface rather than expecting a desktop keyboard layout.
- Try the GitHub Pages fallback.
The game is too small
Rotate a phone or tablet to landscape and try the documented width option if you need a particular display width. Browser zoom may help, but its results can vary.
Touch input feels inaccurate
Use a keyboard or controller if possible, keep the device in landscape mode, and consider ?strength=50 for a less punishing session.
Best Value
Sound or performance is poor
Reload after granting browser sound permission, close unnecessary tabs, or try another current browser. Behavior can vary by device and browser, so no single browser can be guaranteed to work best without current device-specific testing.
For a native desktop version
If you want configurable controls, save/load functions, replays, mods, or a local native build rather than zero-install browser play, see SDLPoP. It is a separate open-source port based on a disassembly of the DOS version and documents Windows, GNU/Linux, and macOS use.
PrinceJS can also be run locally by developers or preservation-minded users. The project’s documented setup requires Node.js:
git clone https://github.com/oklemenz/PrinceJS.git
cd PrinceJS
npm install
npm start
Then open http://localhost:8080. For most players, opening princejs.com is much quicker.
The simplest route
For immediate nostalgia, open PrinceJS, click the game area, and use the arrow keys plus Shift. It delivers the classic MS-DOS-based Prince of Persia experience directly in the browser without an emulator download.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

