Loading

Search Code

Search code contents

Close File Browser

Execution Mode

Live: will automatically execute upon every character typed (warning: could result in issues if you have intensive or partially-completed code that results in an infinite loop)

Exited code editor: will automatically execute code when the code editor loses focus - i.e. when you click outside of the code editor

Run on click: code will only be executed when you click the triangular run/play button

File Manager

Search & browse files easily

Pseudocode

Write and run pseudocode

Java

See a Java equivalent to your pseudocode program

Note: the site doesn't allow executing Java. An IDE like IntelliJ will provide an easy installation of the JDK and is recommended for running Java locally

Python

See a Python equivalent to your pseudocode program

Note: the site doesn't allow executing Python. An IDE like PyCharm will provide an easy installation of the Python interpreter and is recommended for running Python locally

Visual Basic

See a Visual Basic (VB) equivalent to your pseudocode program

Note: the site doesn't allow executing Visual Basic. An IDE like Visual Studio will provide an easy installation of the Visual Studio compiler and is recommended for running Visual Basic locally

New Program

Choose from a number of pre-made programs or create your own

Modifying a pre-made program will automatically create a new program, ensuring the original & modified version are available

Create Trace Table

Automatically create trace tables for your code

Can use the BREAKPOINT keyword to add breakpoints at specific parts of your program

Use TRACE_NEXT_ROW to force new row to be created in trace table

Autoformat Code

Toggle original/formatted code

Pretty-printing/auto-formatting code will insert new lines, indentation and apply consistent styling rules. If enabled, pretty-printing will also occur each time you run your program

You can even try writing your entire program on one line...and it should still run and be formatted correctly :)

Note: code may be re-ordered (e.g. all declarations moved to the top) due to the way the site works

Tested and works for all demo programs - please contact me if this breaks any of your working code!

Show Abstract Syntax Tree

Display a visual representation of the parse result of the program

Load

Load a previously-saved pseudocode file (.pseudo default extension)

Download

Download one or more .pseudo files for future use (e.g. backup/sharing/transferring to a different device)

Programs will be saved periodically (every 10 seconds) to your browser's local storage if changes are made - this means you can access your programs across multiple tabs

Note that these local saves won't persist next time you open the site if you were using it in a private window - clearing your browser's cache will also cause all your programs to be lost

Upload

Save your program for public-viewing by anyone

Sharing

Share a direct link containing your code - your code will be contained in the URL and NOT stored on the server

Alternatively, you can select the upload option to upload your code publicly to the server

Quiet Editor

Remove bloat like the navigation bar & footer to focus only on the code editor

Note: can be toggled with CTRL + Q (quiet mode)

Fullscreen Quiet Mode

Toggle between regular and fullscreen mode

Note: pressing FN/F11/ESC keys isn't recommended, since they can't be detected by the site, hence the additional 'quite mode' settings can't be applied - the removing of the nav bar & footer. To enter this fullscreen mode, either use this button or the keyboard shortcut CTRL + M (minimise <-> maximise)

Add Favourite

Add this code as a favourite you can view later

No errors βœ…

Error Checks

The site aims to enforce the statically-typed nature of pseudocode - i.e. assigning a STRING to an INTEGER variable should be forbidden. Some combinations are allowed, however - such as assigning a CHAR to a STRING or an INTEGER to a REAL. Other additional checks to ensure valid pseudocode are also in place

The site has been well-tested and there aren't any bugs we are aware of, however, if you believe the site is incorrectly giving you an error & preventing your code from running, you can disable the error-checking

In such cases, please feel free to contact us

Note that it is not possible to disable fatal error messages such as syntax errors, runtime errors etc

Subroutine Signature Hints

If enabled, the following information will be shown:

  • Keyword/Identifier/Module Name Suggestions
  • Subroutine parameters & types
  • Return types
  • Subroutine descriptions
  • Examples

Switch Program Shortcuts

Choose whether CTRL + SHIFT + LEFT/RIGHT should navigate to the previous program - can be disabled to prevent accidental triggering

Toggle Keyboard Shortcuts

Enable or disable this website's additional keyboard shortcuts (switch program, change font size, code execution etc) - note: standard editor & browser shortcuts will still apply

Use Assignment Arrow

Will cause "<-" to be replaced with the Unicode "←" symbol as the user is typing - can also use CTRL + SHIFT + < to insert this symbol

Allow Array Multi-Assignment

If enabled, you won't get warnings for assigning all values to an array in one statement - e.g. myArray <-- [1, 2, 3]

Allow LENGTH() for Arrays

Turning this on will disable the warning message if using the LENGTH function to get the number of elements in an array

Require Variable Initialisation

If enabled, you will get warnings if trying to access uninitialised variables

Code Snippets

These are pre-written code templates - for example, if you type in "DECLARE" in the code editor, you will see options to declare single variables, 1 & 2D arrays - you can disable this option

Show Toolbar Program Browser

If enabled, will show the program browser in the toolbar even if the sidebar file browser is open

Show Welcome Message

Toggle the welcome message/popup in the bottom right corner from showing

Wait for Tips

Will show the loading screen until at least the tip (hint) has been displayed, even if the site is fully loaded. Disabling this can hence make the editor screen appear faster, if the page is ready

Max Execution Time

To prevent infinite loops resulting in the page becoming unresponsive, code will automatically terminate if this value (in seconds) is exceeded

If you have a legitimate long-running program, you can obviously set this to a high value - alternatively, setting to -1 will disable this check

IGCSE Syllabus (Pseudocode p35) O-Level Syllabus (Pseudocode p35) A-Level Syllabus A-Level Pseudocode Guide A-Level Pseudocode Functions Report Bugs
YouTube Tutorials Discord Help
AssemblyCode BooleanLogic CIESchedule Program52
DemosπŸ§‘πŸ»β€πŸ« KeywordsπŸ“œ Monthly Challenge: Getting...πŸ“† πŸ’¬
{"0":"Algorithms","1":"Selection","2":"Iteration","3":"Arrays","4":"Records","5":"ENUMs","6":"Custom Modules","7":"Files","8":"Object-Oriented Programming","9":"Abstract Data Types","10":"Sets","11":"Pointers","12":"Recursion","13":"Exam Questions","14":"Games","15":"Mathematics","16":"Art","17":"Utilities","18":"Other"}

Welcome to Pseudocode Pro

This site was developed to solve the problems of students either being completely stuck with pseudocode, or attempting a solution, but having no way of actually validating if it would work (other than a manual trace table). This site supports the entire Cambridge IGCSE (0478), O-Level (2210) and 9618 A-Level pseudocode specifications from the guide/syllabus, with extension modules supporting sound, canvas, events, custom html etc

Below are lists of both the currently support pseudocode and general website features:

  • πŸ“¦ Variables & Constants
  • βž• Arithmetic & Logical Operators
  • πŸ“₯πŸ“€ INPUT & OUTPUT
  • β“βŒ IF/ELSE & CASE
  • πŸ” FOR/WHILE/REPEAT...UNTIL Loops
  • πŸ”§ FUNCTIONS & PROCEDURES
  • πŸ”’ BYVAL & BYREF
  • πŸ”’ ARRAYs
  • πŸ“’ TYPEs (Records & Enums)
  • πŸ“„ File Handling (Text & RANDOM)
  • 🧩 Object-Oriented Programming
  • πŸͺ£ Sets
  • πŸ‘‰ Pointers
  • --- Extra Non-Syllabus Features ---
  • πŸ”Š Sound
  • 🎨 Canvas
  • πŸ–²οΈ Events
  • πŸ–₯️ Custom HTML

Additional programs uploaded by the community can be found on the search page.

While you are here, why not try one of the many - and ever increasing list of - pseudocode coding challenges.

To support hosting & domain costs, for $2, a premium account can be purchased - this has the following benefits:

Those last 2 features are currently in progress, so an extra 3 months free will be given to anyone who buys a license now to acknowledge this

For any issues, feature requests, comments etc, you can contact me

Token List

Work in progress: some buttons currently don't work...just select "All"

Token Description Example Parameters

Thanks for using the site - I hope you enjoy it and if you do, it would mean a lot if you could share it with your friends too :)

Drag & drop code or data files here

{"c":"\/\/ * Code Author: SharpPencil\n\/\/ * Date: 2026\/05\/04\n\/\/ * Description: A sequel to my first game, 'The Bird Knight'\r\n\/\/ A text-based adventure game\n\/\/ * Categories: Games\n\n\/\/ * Code Author: SharpPencil\r\n\/\/ * Date: 2026\/05\/04\r\n\/\/ * Description: A sequel to my first game, 'The Bird Knight'\r\n\/\/ A text-based adventure game\r\n\/\/ * Categories: Games\r\n\r\n@\r\nHi! Please pay attention\r\nThis game was too large to upload as one file, so I've split it into bits. If you would like to play, please:\r\n1) Open the code editor\r\n2) Copy and paste the different bits into it\r\n3) Ensure that you have all the bits, and that they are in the right order\r\n4) Ensure this part is not copied\r\n5) Ensure that code isn't automatically translated to keywords (Please do not convert 'Random' and any numbers into keywords\/line numbers)\r\n6) If you have any difficulties, make sure you are using the O-Level syllabus\r\n7) Have fun!\r\n@\r\n\r\nPROCEDURE ArmySky()\r\n IF Choice = 1 THEN \/\/ Mana Check\r\n IF Mana >= 15 THEN\r\n OUTPUT \"You focus your mana around your antennas, and blast a continuous beam of pollen at them. All three of them fall just as your beam fizzles out.\"\r\n ELSE\r\n OUTPUT \"You focus your limited mana around your antennas, and a few sparks of pollen shoot out, but the birds continue their charge.\"\r\n IF Speed >= 7 THEN\r\n OUTPUT \"You speed away just in time, but one still manages to land a small hit, dealing 25 DMG.\"\r\n HP \u2190 (HP - 25)\r\n ELSE\r\n OUTPUT \"The three of them hit at once. You fall to the ground, your wings unable to keep you up as you bleed out. GAME OVER\"\r\n CALL GameEnd()\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\n IF Choice = 2 THEN \/\/ Strength Check\r\n IF Strength >= 7 THEN\r\n OUTPUT \"You flap your wings hard, shoving all three of them backward.\"\r\n ELSE\r\n OUTPUT \"You flap your wings, but not much air is displaced. It somewhat startles two of them, leading them to miss. But one hits you, dealing 25 DMG.\"\r\n HP \u2190 (HP - 25)\r\n ENDIF\r\n ENDIF\r\n OUTPUT \"You enter the castle through a window at the top, leaving a few bees behind to guard it. You go down the steps, leading to a door, with something engraved on it. (20% of 75). You stare at it, completely baffled. Maybe your magic could help? What does it say is the answer?\"\r\n CALL ThroneRoom()\r\nENDPROCEDURE\r\n\r\nPROCEDURE ArmyGround()\r\n CALL GateBreaking()\r\n OUTPUT \"A bell rings somewhere above you, signaling your arrival, however, the inside of the castle seems to be empty. Suddenly, you hear a small thud to your right. You barely dodge, as a penguin with a lance charges at you.\"\r\n OppHP \u2190 200\r\n CALL PenguinBoss()\r\n IF HP <= 0 THEN\r\n OUTPUT \"GAME OVER.\"\r\n CALL GameEnd()\r\n ELSE\r\n OUTPUT \"The penguin drops to the floor, bleeding out. You pick up it's lance, tossing it in your hands. (LANCE AQUIRED!)\"\r\n OUTPUT \"+5 Skills Points!\"\r\n SkillPoints \u2190 (SkillPoints + 5)\r\n CALL SkillShop()\r\n LanceFound \u2190 TRUE\r\n ENDIF\r\n OUTPUT \"Before any backup can arrive, you march in deeper into the castle, eventually stumbling into a door with something engraved on it (20% of 75). You stare at it, completely baffled. Maybe your magic could help? What does it say is the answer?\"\r\n CALL ThroneRoom()\r\nENDPROCEDURE\r\n\r\nPROCEDURE Army()\r\n OppHP \u2190 200\r\n CALL CrowBoss()\r\n OUTPUT \"As the crow falls to the floor, you pick up its mace and toss it in your hands, and look around to find that the bees made quick work of the other birds. They join your side once again, and you march with them toward the castle. (MACE AQUIRED!)\"\r\n MaceFound \u2190 TRUE\r\n OUTPUT \"+5 Skills Points!\"\r\n SkillPoints \u2190 (SkillPoints + 5)\r\n CALL SkillShop()\r\n OUTPUT \"Birds are patrolling every direction in the skies surrounding the castle, but they seem to have less around the ground. What will you do?\r\n1. Infiltrate via the sky\r\n2. Infiltrate via the gate\"\r\n CALL Decision()\r\n IF Choice = 1 THEN\r\n OUTPUT \"You flap your wings, and rocket into the sky with the bees following suit. Three birds charge directly at you. What do you do?\r\n1. Pollen Beam\r\n2. Flap\"\r\n CALL Decision()\r\n CALL ArmySky\r\n ELSE\r\n CALL ArmyGround\r\n ENDIF\r\nENDPROCEDURE\r\n\r\n\/\/ The Game\r\nOUTPUT \"How to play:\r\n* To make decisions in this game, you must pick between the options presented in front of you. To select an option, input the number into the input box.\r\n* The choices alone aren't the only factors deciding which path you take, as your stats will sometimes make decisions for you, so make sure you choose them wisely. (Even if you choose certain options, the outcomes are dependent on your stats)\r\n* This game obviously doesn't take itself very seriously, and is meant to be quite dramatic. Hope you have fun!\r\n\r\nWelcome! If you haven't played The Bird Knight, I recommend playing that first, as this is a prequel. In this text-based adventure game, you play as the butterfly king who defeated the bird kingdom.\r\n\"\r\nCALL SkillShop()\r\nOUTPUT \"\r\nYou flap your wings hard, launching yourself into the sky. Butterflies can only live up to a month, which only gives you so much time to go down in the butterfly history books. You spent the first week of your life waging war with the birds, for just that reason. The rest of the kingdom didn't agree with this war, but it doesn't mattter. If you can win this war, every single one of them will for sure respect you. You take a deep breath as you calm your wings down, flapping them just enough to levitate in place to overlooking the incoming bird army. What's your plan?\r\n1. Infiltrate alone\r\n2. Attack with your army\"\r\nCALL Decision()\r\nIF Choice = 1 THEN\r\n OUTPUT \"There were more bird troops than you expected. It would probably be better if you let your bee army distract them, so you could speed past. A loud boom echoes as you flap your wings and soar through the sky. As you approach the bird army, a giant boulder is launched toward you. What do you do?\r\n1. Speed past it\r\n2. Slash through it\"\r\n CALL Alone()\r\nELSE\r\n OUTPUT \"You glide down towards your bee army. The rest of the butterflies were so against the invasion, that they didn't even come. But that's fine, the bees were more than enough. You lead your army down the hill, straight towards the birds. Soon, the buzzing sounds mixed with the singing of the birds. You take a deep breath, preparing for the fight.\r\n The two army's mesh together, and start swinging. Birds fall as hundreds of bees swarm them, and they are almost unable to fight back with how small the bees are. One crow however, who wields a mace is making light work of the bees.\"\r\n TheBees \u2190 TRUE\r\n CALL Army()\r\nENDIF","t":"The Butterfly Invasion (4)"}
{}
ALL