Upload a screenshot
Drop an image here, paste from clipboard, or choose a screenshot to start.
PNG, JPG, JPEG, and WebP up to 10 MB
Upload a screenshot to start extracting text.
Your extracted text will appear here after OCR.
What is Screenshot to Text & Code?
Screenshot to Text & Code extracts readable text and source code from screenshots with browser-based OCR. It is built for developers copying snippets from tutorials, Slack threads, docs, PDFs, terminal captures, and bug reports without sending images to an AI or backend service.
How to use
1. Drop, choose, or paste a PNG, JPG, JPEG, or WebP screenshot. 2. Click Extract Text, or enable auto extract on upload for a faster workflow. 3. Open Advanced settings only when you need grayscale, contrast, invert, or 2x upscale preprocessing. 4. Review the raw text, cleaned result, or Markdown code block, and override the detected language when needed. 5. Copy the text, copy a Markdown code block, or download .txt or a language-specific code file.
Code cleanup
Cleanup options normalize smart quotes, trim trailing whitespace, remove common line-number prefixes, normalize indentation, and collapse duplicated blank lines. The cleaned editor remains editable so you can fix OCR mistakes before copying or downloading.
Language detection
The detector uses deterministic heuristics for JavaScript, TypeScript, HTML, CSS, JSON, SQL, XML, YAML, Markdown, Bash, Python, Java, PHP, Go, Rust, C, C++, and C#. It is useful for syntax highlighting and file extension selection, but manual override is available for ambiguous screenshots.
Privacy and limitations
OCR quality depends on the screenshot: small fonts, blur, compression artifacts, unusual themes, ligatures, or dense UI backgrounds can lower accuracy, so very noisy captures may still need manual correction.