AI code explainer
Paste code and get a plain-English explanation using your own OpenAI, Claude or Gemini API key. Language auto-detect included.
About this tool
Reading unfamiliar code is slow when you have no context: a library snippet, a colleague’s script, a regular expression copied from a forum. Paste it here and, using your own API key, a model walks through what the code does section by section in plain English, at the detail level you choose.
The language can be auto-detected or set explicitly — JavaScript, Python, Java, C, C++, C#, Go, Rust, Ruby, PHP, TypeScript, SQL, HTML/CSS, Bash and more. Your code is sent only to the provider you selected, over HTTPS; Localcraft never sees or stores it. Minified or obfuscated code produces weaker explanations because names and structure are already gone, so formatting the code first gives noticeably better results.
How to use AI code explainer
- Save your provider API key in the key panel.
- Paste code, optionally set the language and detail level.
- Read the explanation. Your code goes only to the provider you chose.
Keep the original files and inspect the exported result before publishing or sharing it.
Frequently asked questions
How does it explain code?
The model walks through what the code does, section by section, in plain language — no jargon unless you ask for detail.
Which languages are supported?
Auto-detect plus JavaScript, Python, Java, C, C++, C#, Go, Rust, Ruby, PHP, TypeScript, SQL, HTML/CSS, Bash and more.
Is my code private?
It is sent only to the AI provider you selected, over HTTPS. Localcraft never sees or stores it.
Can it explain minified code?
It will try, but minified or obfuscated code loses names and structure, so explanations are less useful. Format it first if you can.
Related tools
- AI chat — Chat with OpenAI, Claude or Gemini using your own API key. Your key stays in your browser; requests go straight to the provider.
- AI summarizer — Summarize long text with your own OpenAI, Claude or Gemini API key. Brief, detailed or bullet-point summaries, all in your browser.
- AI translator — Translate text between 30 languages with your own OpenAI, Claude or Gemini API key. Private by design: key and text stay with you and the provider.
- AI writing assistant — Improve, expand, shorten or re-tone your writing with your own API key. Six editing modes, direct browser-to-provider calls.
- AI PDF chat — Upload a PDF and ask questions about it. The PDF is parsed in your browser; only the extracted text and your question go to your chosen AI provider.
- AI image analyzer — Upload an image and let AI describe it, extract text (OCR), or identify objects. Uses vision models from OpenAI, Claude or Gemini with your own key.
- AI voice generator — Turn text into natural-sounding speech with OpenAI TTS. Six voices, speed control, play in the browser and download MP3.
- AI data analyst — Upload a CSV and ask questions in plain English. The file is parsed locally; the AI sees only a schema summary and sample rows.
- Background remover — Remove image backgrounds entirely in your browser with a local AI model. No API key needed — the model downloads once and runs on your device.
- AI spend analyzer — Turn your AI provider usage export into an independent cost receipt: per-model and per-day breakdowns, spike alerts and a monthly projection. Runs 100% in your browser — your billing data is never uploaded.