Files Magic AI · How-To

How to Batch Rename Scanned Documents with OCR on Mac

Scanned Document.pdf, scan 1.jpg, scan 2.jpg: what OCR actually reads off a scan, and how to turn a backlog of them into filenames you can search.

By Ram Velmurugan · Founder & Lead Developer, 1dot.ai

8-step guide·Native + AI methods·9 min read
Quick answer: Live Text in Preview lets you select and copy text out of one scan at a time, and Preview's Embed Text export runs OCR on a single PDF so it becomes searchable, neither one renames anything or works on a folder at once. Shortcuts can chain OCR into a rename action, but only holds up when every scan shares the same layout. For a mixed backlog of flatbed scans, phone-scanned PDFs, and photographed pages, drop the whole folder into Files Magic AI's Magic Rename: it OCRs each file on-device and proposes a name like 2026-03-02_Chase-Bank_Statement.pdf that you review before anything applies.

A scan backlog looks the same on every Mac. A flatbed scanner or multifunction printer hands you scan.jpg, scan 1.jpg, scan 2.jpg, incrementing forever. Scan a document from your iPhone straight into a Mac folder and it lands as Scanned Document.pdf, then Scanned Document 2.pdf. A photographed page from a scanning app saves under whatever generic name the app defaults to. None of it says whether the file is a lease, a lab result, or last year's W-2.

This guide covers what OCR (optical character recognition) is actually doing when you scan a document, what macOS can already do with that text natively, where those native tools stop being enough once you have more than a handful of scans, and the batch workflow in Magic Rename for clearing out a folder of them at once.

What OCR Actually Does (and Doesn't Do)

A scanned page, whatever produced it, a flatbed scanner, a phone camera, a multifunction printer, is just a picture. To a Mac, a scan of a lease and a scan of a grocery list look identical: a grid of pixels with no idea what any of them mean. OCR is the step that looks at those pixels and works out which shapes are letters, turning a photograph of text into text a computer can actually read, select, and search.

That's the whole job, though. OCR on its own hands back a block of extracted text; it doesn't know that the third line is a vendor name and the date near the top is the one that matters for a filename. Something else has to read that extracted text the way a person would, pick out the useful fields, and turn them into a name. That's the gap between "my scan is now searchable" and "my scan is now named something useful," and it's where the native tools below stop short.

What macOS Does Natively: Live Text, Embed Text, and Shortcuts

macOS has real OCR built in, it's just spread across a few different features, each solving a narrower problem than "rename my scans."

Live Text

Live Text lets you hold the pointer over text inside a photo or a scanned page in Preview, drag to select it, and copy, look up, translate, or search it, the same way you'd select text on a webpage. It's genuinely useful for pulling one phone number or one line out of a scan you already have open. It has no batch mode, no folder-wide action, and no rename step; it operates on whatever single image is in front of you.

Preview's Embed Text export

Since macOS Sonoma, Preview can run OCR on a scanned PDF through File > Export, choosing Embed Text. It recognizes the text on the page and embeds it in the PDF so the document becomes selectable and shows up in Spotlight searches, the option only appears if the PDF doesn't already have a text layer. It's a real OCR feature, but it works on one file at a time through a manual export dialog, and it stops at making the document searchable. The filename stays exactly what it was.

Shortcuts: Extract Text from Image + Rename File

For an actual rename, Shortcuts has an Extract Text from Image action built on Apple's OCR engine, which you can chain into a separate Rename File action to build a basic content-based renamer entirely from stock macOS. This is the closest native option to what this guide is actually about, and it's covered in full, with the exact action chain, in the PDF content-renaming guide.

The pattern across all three
Live Text reads one selection. Embed Text OCRs one file through a manual export. Shortcuts can batch, but only because you tell it exactly where on the page each piece of information sits, which only holds up when every scan in the folder shares one layout.

Where Native OCR Renaming Breaks Down at Scale

A Shortcuts OCR-to-rename pipeline has no concept of "this text is the date" versus "this text is the sender," it just extracts raw text in whatever order it sits on the page. That's fine for a stack of identical monthly statements from one bank. It falls apart the moment a backlog mixes a flatbed-scanned lease, a phone-photographed receipt, and a Continuity Camera scan of a form, three different layouts, three different places the useful information happens to sit.

Format is a second wall. Live Text and Embed Text both work on images and PDFs individually, but nothing in Preview treats a folder of mixed .jpg, .tiff, and .pdf scans as one job. Clearing a real backlog means opening each file, running the export, and repeating it by hand, which is exactly the kind of task that doesn't scale past a handful of documents.

An AI-based reader closes both gaps at once: it understands the extracted text semantically rather than positionally, so it can tell a signing date from a document title even when they land in different spots on different scans, and it treats a mixed folder of formats as a single batch. That's the problem Magic Rename is built to cover.

Batch Renaming Scanned Documents, Step by Step

Here's the workflow in Files Magic AI, from a folder of generic scan names to one that's searchable at a glance.

1

Collect every scan into one folder

Setup

Pull scans out of your scanner's output folder, Continuity Camera saves, and any scanning app's export folder into one working folder. Mixed formats and mixed layouts are fine, Magic Rename doesn't need every file to match.

2

Drop the folder into Magic Rename

Files Magic AI

Drag individual scans or the whole folder onto the Magic Rename page. A handful of files or a few hundred works the same way.

3

Pick a template, or write a custom prompt

Files Magic AI

Use a built-in template for a general {date}_{sender}_{type} shape, or describe the fields you want in plain language, for example "name it by the institution and the statement period" for a folder of scanned bank statements. Auto mode picks a reasonable name per file if you'd rather not choose.

4

Let on-device OCR read every file

On-device

Images (PNG, JPG, JPEG, HEIC, TIFF, BMP, WebP) and scanned PDFs go through on-device OCR. A PDF that already has a text layer, like one exported from Embed Text, is read directly instead. Either way, nothing leaves your Mac.

5

Review the batch preview

Check before applying

Every original filename shows next to its proposed replacement in one list. This is where a crooked scan or a smudged field gets caught before it becomes a permanently wrong filename. Collisions, two scans that would land on the same name, are flagged here.

6

Fix or skip anything that looks off

Optional

Correct a misread field on a low-quality scan, or exclude that one file from the batch. Everything else still applies normally.

7

Apply the batch

Done

Approve the batch and every file is renamed at once, regardless of its original format.

8

Undo if something needs fixing later

Safety net

Rename history holds up to 2,000 past renames. Revert a single file, or the whole batch, from history rather than retyping names by hand.

Good vs. Bad Filenames for Scanned Documents

BadWhere it came fromGood
Scanned Document.pdfContinuity Camera scan saved from iPhone to Mac2026-04-02_State-Farm_Insurance-Policy.pdf
scan 2.jpgImage Capture, flatbed scanner, incrementing default name2026-03-02_Chase-Bank_Statement.jpg
IMG_4471.HEICPhotographed page from an iPhone camera roll2026-02-18_Dr-Patel_Lab-Results.heic
Document (1).tiffMultifunction printer's scan-to-folder output2026-01-30_W9_Contractor-Name.tiff

Where Scans Actually Come From

"Scanned document" covers more sources than people usually count, and each one has its own default naming habit that turns into the same problem later.

  • Flatbed scanners and multifunction printers, driven through macOS's Image Capture app, default to naming scans scan.jpg, then scan 1.jpg, scan 2.jpg, incrementing with every save unless combined into one document.
  • Continuity Camera lets you scan a document from a nearby iPhone or iPad directly into a Mac folder from Finder's contextual menu; the resulting PDF is named Scanned Document.pdf, then Scanned Document 2.pdf, and so on.
  • Third-party scanning apps on iPhone save their own generic defaults, and often export as PDF with no field extracted from the page itself.
  • A photo of a page, taken with an ordinary camera app rather than a scanning app, lands in the camera roll under a standard IMG_XXXX name and is functionally a scan for renaming purposes, even though nothing ever called it one.

Magic Rename treats all four the same way: read what's actually on the page, propose a name from it, and let the source app's naming habit stop mattering.

Native Tools vs. Magic Rename, Side by Side

CapabilityLive TextEmbed Text exportShortcuts OCR chainMagic Rename
Runs on a whole folder at onceNoNo, one file per exportYesYes
Renames the fileNoNoYesYes
Understands mixed layoutsN/AN/ANo, positional onlyYes, semantic
Works across images and PDFs togetherImages onlyPDFs onlyDepends on the recipe builtYes
Runs on-deviceYesYesYesYes
Review before applyingN/AN/ANo built-in previewBatch preview, undo up to 2,000 renames

None of the native tools are bad at what they specifically do. Live Text is the fastest way to copy one phone number out of a scan you have open. Embed Text is the right call for making a single important PDF searchable. Shortcuts is genuinely enough for a folder that only ever holds one recurring form. What none of them do is treat a mixed backlog of scans as one job with a filename at the end of it, which is the specific gap this guide is about.

Stop opening every scan just to find out what it is

Magic Rename reads what's actually on the page, on your Mac, and proposes a filename you can search for. 7-day free trial, no credit card required.

Try Magic RenameExplore Files Magic AI

Sources & Further Reading

Live Text in Preview: Apple Support, "Interact with text in a photo using Live Text in Preview on Mac."

Preview's Embed Text OCR export: Apple Support, "Embed text in a PDF."

Continuity Camera document scanning and its default filename: Apple Support, "How to scan documents on your iPhone or iPad."

Image Capture's scan-numbering behavior: Apple Support, Image Capture User Guide for Mac.

Magic Rename's engines, formats, and positioning: Files Magic AI's Magic Rename product page. The Shortcuts OCR-to-rename chain in full: renaming PDFs by content on Mac. How AI file renaming works more broadly: our AI file renaming guide.


Frequently Asked Questions

What does OCR actually do to a scanned file?
OCR (optical character recognition) looks at a scanned page, which is really just a photograph or a flat image, and works out which pixels form letters and words, turning a picture of text into actual, selectable text. On its own, OCR does not rename anything. It produces a block of extracted text; something else has to decide which words become the filename.
Can Live Text in Preview batch rename my scanned files?
No. Live Text lets you hold the pointer over text in a photo or scanned page, drag to select it, and copy it, one document, one selection at a time. It has no batch mode and no rename action; it is built for reading a page you already have open, not processing a folder.
Does Preview's "Embed Text" export do OCR for me automatically?
It runs OCR, but on one file at a time through File > Export, and only if the document has no existing text layer. It embeds the recognized text so the PDF becomes selectable and searchable in Spotlight and other PDF viewers. It still does not rename the file: you get a searchable Scanned Document.pdf, not a filename that tells you what is in it.
Will this work on a scan with handwriting?
Printed text OCRs reliably across all the methods in this guide. Handwriting is a much harder problem, and every OCR engine here, including Live Text, Preview, and Magic Rename's on-device model, reads cursive or messy handwriting inconsistently. Treat a handwritten form as the case where you check the suggested name closely, or type it yourself.
Do my scans get uploaded anywhere to be renamed?
Not with Magic Rename. Reading and naming happen on your Mac using an on-device model, or Apple Intelligence if you have it enabled, with no network call as part of the rename pipeline. Live Text and Preview's Embed Text are also on-device, since both rely on Apple's own local text-recognition frameworks.
What file types count as a "scanned document" here?
Anything that started as a physical page and became an image: a scanned PDF from a flatbed scanner or multifunction printer, a phone photo of a page, or a Continuity Camera scan saved as PDF. Magic Rename reads PNG, JPG, JPEG, HEIC, TIFF, BMP, and WebP with OCR, plus scanned and text-layer PDFs, so a mixed folder of scanner output and phone photos gets processed the same way.
Can I rename hundreds of scans from a backlog at once?
Yes. Drop the whole folder onto Magic Rename, choose a template or Auto mode, and every file in it, images and PDFs together, gets read and proposed a name in one batch preview. Filename collisions are flagged there instead of one file silently overwriting another.

A scanner has no idea what it just scanned, so it names the file after itself instead: the app, a counter, a timestamp. OCR is what makes the actual content readable again, and reading it well enough to name the file is the part native macOS tools split across several single-file features rather than offering as one batch job. For documents that arrived as PDFs specifically, with a text layer already or without one, the deeper walkthrough is in renaming PDFs by content. For the bookkeeping-specific case of scanned receipts, see renaming scanned receipts on Mac, and for scanned invoices, how to rename invoices on Mac. For the full picture of how AI renaming engines work, including on-device versus cloud processing, read How AI File Renaming Works on Mac.

Published August 22, 2026 · More guides · Files Magic AI