How to Extract Text from Images and Screenshots on Mac
How to Extract Text from Images and Screenshots on Mac
Have you ever taken a screenshot of a code snippet, an error message, or a terminal output — then had to retype it manually? Or received a scanned PDF and needed to copy a paragraph from it? That is where OCR (Optical Character Recognition) saves hours of tedious work.
This guide explains how to extract text from images on Mac using built-in tools, third-party apps, and Snapzy's built-in OCR. We will cover accuracy, speed, supported languages, and which tool fits your workflow best.
What Is OCR and Why Does It Matter?
OCR is technology that reads text inside images and converts it into editable, selectable text. Instead of looking at a picture of words, you get actual characters you can copy, paste, and search.
On a Mac, OCR is useful for:
- Copying code from screenshots without retyping
- Extracting error messages from dialog boxes
- Pulling text from scanned documents or PDFs
- Grabbing URLs, serial numbers, or addresses from photos
- Converting handwritten notes (with advanced OCR engines)
For developers, designers, and writers, OCR is not a luxury — it is a daily time-saver.
Built-In OCR Options on macOS
Live Text (macOS 13+)
Apple introduced Live Text in macOS Ventura. It works in Photos, Safari, Preview, and Quick Look. When you open an image containing text, a small icon appears in the bottom-right corner. Click it, and you can select, copy, and paste text directly from the image.
Pros: Free, no extra apps needed, works in system apps. Cons: Only works in supported apps, no batch processing, limited to languages Apple supports, cannot extract code with preserved indentation.
Preview
Preview can display text in PDFs, but it does not perform true OCR on image-based PDFs or screenshots. If the text is part of an image (not a text layer), Preview treats it as a picture — unselectable.
Best for: Text-based PDFs only. Not true OCR.
Third-Party OCR Tools for Mac
| Tool | Price | Speed | Code Preservation | Best For |
|---|---|---|---|---|
| Live Text | Free | Fast | Poor | Quick one-off copies |
| TextSniper | $8 | Very fast | Moderate | Menu-bar quick extraction |
| Shottr | Free | Fast | Moderate | Screenshot + OCR combo |
| Snapzy | Free | Fast | Excellent | Screenshots, code, any image |
TextSniper
TextSniper is a popular menu-bar OCR tool for Mac. Press a shortcut, drag over any text on screen, and it copies to clipboard instantly. It costs $8 one-time and works well for general text.
Limitations: Code indentation is often lost. Multi-line formatting can break. No built-in screenshot or annotation tools — it is OCR-only.
Shottr
Shottr includes OCR as part of its free screenshot tool. After capturing a region, you can select text within the image. It is fast and convenient, but accuracy drops with small fonts or complex layouts.
Limitations: No dedicated OCR shortcut for existing images. You must take a screenshot first.
Snapzy OCR: Built-In, Free, and Code-Aware
Snapzy includes OCR Text Recognition at no cost. Unlike most free tools, it is designed specifically for the kinds of text power users encounter daily: code blocks, terminal output, error traces, and UI labels.
How to Use Snapzy OCR
Method 1: OCR Capture Mode
Press ⇧⌘2 to activate OCR capture mode. Drag over any area of your screen. Snapzy extracts the text instantly and shows it in a clean panel where you can:
- Copy the entire output
- Copy as code (preserves indentation and formatting)
- Select specific lines to copy
- Search within the extracted text
Method 2: From Any Image
Drag any PNG, JPEG, or screenshot into Snapzy's annotate editor. Click the OCR tool and select the region containing text. Snapzy processes it and displays the result in the same panel.
This works on screenshots you took months ago, images from the web, or scanned documents.
Why Snapzy OCR Is Different
- Code detection: Recognizes code blocks and preserves indentation, spacing, and line breaks better than generic OCR
- Multi-line accuracy: Handles paragraphs, lists, and tables without breaking formatting
- Instant activation: Dedicated shortcut (⇧⌘2) means no menu diving
- No limits: Unlimited OCR usage, no subscription, no per-page fees
- Privacy-first: Text extraction happens on your Mac. No cloud processing, no data sent to servers
OCR Accuracy: What Affects Results
No OCR tool is perfect. Accuracy depends on several factors:
| Factor | Impact | Tip |
|---|---|---|
| Font size | Small fonts (<10px) are harder to read | Zoom in before capturing |
| Image resolution | Low-res images produce more errors | Capture at Retina resolution |
| Background contrast | Low contrast reduces accuracy | Avoid text on busy backgrounds |
| Font type | Decorative fonts confuse OCR | Stick to standard fonts when possible |
| Language | Non-Latin scripts need specific support | Snapzy supports major languages |
| Code formatting | Indentation and spacing matter | Use "Copy as Code" in Snapzy |
For best results, capture text at the highest resolution available and ensure good contrast between text and background.
Real-World OCR Workflows
Workflow 1: The Terminal Copy
You ran a command and got a long error trace. You need to paste it into a GitHub issue.
- Press ⇧⌘2 and drag over the terminal output
- Click Copy as Code
- Paste into the GitHub issue with perfect indentation
Time saved: 2–5 minutes per error message.
Workflow 2: The Stack Overflow Snippet
You found a code snippet in a screenshot on Stack Overflow. The original post has no text version.
- Drag the image into Snapzy's annotate editor
- Use the OCR tool to select the code region
- Copy as code and paste into your IDE
Time saved: 1–3 minutes per snippet.
Workflow 3: The UI Label Grab
You are writing documentation and need the exact label text from a settings panel.
- Press ⇧⌘2 and drag over the label
- Copy the extracted text
- Paste into your document with exact spelling
Time saved: 30 seconds per label. Adds up fast in long docs.
Frequently Asked Questions
How do I copy text from a screenshot on Mac?
Use Snapzy's OCR mode. Press ⇧⌘2, drag over the text, and copy the result. You can also drag any image into Snapzy and run OCR on it.
Is there a free OCR tool for Mac?
Yes. Snapzy includes free OCR with no usage limits. Apple's Live Text is also free but only works in supported apps and lacks code preservation.
Can OCR read code with indentation?
Snapzy's "Copy as Code" feature preserves indentation and line breaks better than generic OCR tools. It is designed specifically for extracting code from screenshots.
Does OCR work on handwritten text?
Standard OCR works best on printed or digital text. Handwriting accuracy varies depending on legibility. For best results with handwritten notes, use a high-resolution capture and clear pen strokes.
Is OCR in Snapzy private?
Yes. All OCR processing happens locally on your Mac. No text is sent to external servers or cloud services.
Can I extract text from a PDF image on Mac?
Yes. Convert the PDF page to an image or drag the PDF into Snapzy. Use the OCR tool to select text regions and extract editable content.
Final Thoughts
Retyping text from images is one of the most wasteful tasks in modern work. A good OCR tool turns a five-minute chore into a five-second action. The built-in macOS options are helpful for casual use, but they fall short for professionals who need accuracy, speed, and code preservation.
Snapzy's OCR is built for that reality. It is fast, free, code-aware, and private. Whether you are extracting terminal output, copying code snippets, or grabbing labels for documentation, it removes the friction entirely.
If you are ready to stop retyping and start copying, download Snapzy for free and try OCR with ⇧⌘2.
Support the project
Snapzy is free and open source. If you find it useful, consider sponsoring to help keep development alive and accessible to everyone.