Back to Blog
ocrtext recognitionmacosproductivityguide

How to Extract Text from Images and Screenshots on Mac

Snapzy Team

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

ToolPriceSpeedCode PreservationBest For
Live TextFreeFastPoorQuick one-off copies
TextSniper$8Very fastModerateMenu-bar quick extraction
ShottrFreeFastModerateScreenshot + OCR combo
SnapzyFreeFastExcellentScreenshots, 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:

FactorImpactTip
Font sizeSmall fonts (<10px) are harder to readZoom in before capturing
Image resolutionLow-res images produce more errorsCapture at Retina resolution
Background contrastLow contrast reduces accuracyAvoid text on busy backgrounds
Font typeDecorative fonts confuse OCRStick to standard fonts when possible
LanguageNon-Latin scripts need specific supportSnapzy supports major languages
Code formattingIndentation and spacing matterUse "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.

  1. Press ⇧⌘2 and drag over the terminal output
  2. Click Copy as Code
  3. 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.

  1. Drag the image into Snapzy's annotate editor
  2. Use the OCR tool to select the code region
  3. 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.

  1. Press ⇧⌘2 and drag over the label
  2. Copy the extracted text
  3. Paste into your document with exact spelling

Time saved: 30 seconds per label. Adds up fast in long docs.


OCR is free in Snapzy, like every feature

Other tools charge for OCR or limit usage. Snapzy includes unlimited text recognition at no cost. If this guide saved you from retyping, consider supporting the project.


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.