Websites, apps & code / Coding & debugging
Explain what code does
Someone gave you code and you want to know what it does and whether it is safe.
Fill in your details
Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).
Prompt
Please help me understand the code below. My level: Use plain words for every step and explain jargon the first time it appears. What I most want to know: Will it delete my files? Does it connect to the internet? Code: (paste a piece of Python or JavaScript) Please answer like this: 1. Two sentences on what the code does overall. 2. Then explain it section by section, with everyday comparisons. 3. A separate "risks" part: does it read or write files, use the network, run system commands, or ask for my password? 4. For parts I did not paste or you cannot tell, say so instead of guessing. 5. End by telling me whether to back up before running it. Do not ask me to paste passwords, API keys, IC numbers or customer data; if my code contains any, remind me to replace them with [FAKE] values first.
Paste it into ChatGPT, Gemini, Claude or Meta AI.
Test result
What we noticed
The sample still had the paste placeholder, so the AI did not invent code. It asked for the real code and listed which delete and network patterns it would look for. No actual code was explained here.
See what the AI actually wrote
Happy to help, but the code slot in your message still says "(paste a piece of Python or JavaScript)" and no actual code came through. I will not guess at code, so please paste it.
Two things before you paste:
- Replace any passwords, API keys, IC numbers or customer data with [FAKE] values, for example
password = "[FAKE]". I do not need the real ones. - Paste it as complete as you can. For anything I cannot see I will say so rather than guess.
Once I have the code, I will answer like this:
- One or two sentences: what the code does overall.
- Section by section: with everyday comparisons, for example a loop is like turning over receipts one by one until none are left; I explain each term the first time it appears.
- A "risks" part, answering your two main worries:
- Does it delete my files? I look for
os.remove,shutil.rmtree,fs.unlink,rmand similar. - Does it connect to the internet? I look for
requests,fetch,urllib,axios, URLs and so on. - I will also list: does it read or write files? Does it run system commands (
os.system,subprocess,exec)? Does it ask for your password or keys? - What I cannot tell: for example if it calls other files or functions you did not paste, I will say "I cannot tell here".
- Whether to back up first: if it writes, renames or deletes files I will suggest copying the folder first; if it only reads and displays, the risk is lower and I will say so.
Paste the code and I will begin.
AI tools that suit this
- Claude Suggested tool Free plan
Strong at long documents, editing and code
- ChatGPT Suggested tool Free plan
The most widely used AI chat, for writing, questions and images
- Gemini Suggested tool Free plan
Google's AI; generates and edits images, works with Gmail and Docs
Recommendations only, not sponsored. Check each site for what the free plan includes.
This site is made by FullMark Tech
Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.