How-to · 6 min read

How to edit the text in a PDF without wrecking the layout

A wrong figure, a stale date, a misspelled name. Here is how to change the words on the page and get a file back that still looks like the original.

Editing a PDF sounds like it should be the easiest thing in the world and it is one of the hardest, for a reason that has nothing to do with software quality. A word processor stores paragraphs: a run of characters with a style attached, which the program flows into lines when it draws them. A PDF stores the opposite — it stores where each glyph was already placed. There are no paragraphs in the file, and often no words either, only instructions of the form "draw this character at this coordinate in this font at this size".

That is why the usual advice is to convert the PDF to Word, edit it there and convert it back, and why the result so often comes out looking like a different document. Two conversions is two chances for a table to become a list, for a heading to lose its font, and for a page break to land in the middle of a sentence.

There is a narrower approach that keeps the document intact, and it works whenever the change you need is small: leave the page exactly as it is, paint over the one run of text you want to change, and redraw that run with the new words at the same position, size and colour. Everything you did not touch is not re-rendered at all — it is the original bytes, unchanged. That is what the Edit PDF tool does.

Step by step

How to do it

  1. Open the PDF in the editor

    Go to Edit PDF and drop the file on the box, or click to choose it. The pages render exactly as they will print — this is the real document, not an approximation of it — and every run of text that can be edited becomes clickable.

  2. Click the words you want to change

    Click any run of text on the page. An input opens over it, at the same size and in the same place, with the current wording already selected. What you see while typing is where the text will sit in the exported file.

  3. Type the replacement and press Enter

    Enter commits the change; Escape abandons it. The run is marked as edited. Typing the original wording back removes the edit entirely rather than recording a change that does nothing — so you can always undo by retyping.

  4. Repeat for every change, then export

    Edit as many runs as you need across as many pages as you need. Then export. Only the runs you changed are covered and redrawn; every other object in the file is copied through untouched.

  5. Check the result before you send it

    Open the downloaded file and look at the lines you changed. If the new text is much longer than the old text it will extend past where the original ended, because nothing reflows — see below for what to do when that happens.

What this does not do, stated plainly

It is not redaction. The cover is a rectangle drawn on top and the new text is drawn on top of that. The original characters are still in the file's text layer underneath, and anyone who selects the text, copies it, or opens the file in a tool that reads the content stream can recover them. If your reason for changing the words is that the old words must not be readable, this is the wrong tool and so is every "black box over it" method — the only safe approach is to remove the content, not to hide it.

Nothing reflows. Replacing "12" with "12,480" makes the run longer, and it will run past where the original ended rather than pushing the rest of the line along. For short corrections — a date, a number, a name, a title — this is invisible. For a sentence that grows by half a line, it is not. Where the change is big enough to need the paragraph to re-wrap, converting to Word and editing there really is the right route, and PDF to Word has a layout mode built for exactly that handover.

The font may be substituted. A PDF often embeds only the glyphs it actually uses — a subset. If the original file embedded no "@" because the document never contained one, typing an email address means that character does not exist in the embedded font and has to come from a standard one. The editor matches the closest standard face by metrics, which is usually indistinguishable at body size and occasionally is not.

When the scan is a picture of text

If clicking a word does nothing, the page probably has no text layer at all. Scans and photographs of documents are images: to a PDF reader the page is one big picture, and there is no run of glyphs to click because there are no glyphs. You can tell in two seconds — try to select the text with your cursor in any PDF reader. If nothing highlights, it is an image.

Making that editable needs optical character recognition, which is a different job and one this site does not do yet. What you can do to a scan is annotate it: Annotate PDF draws on top of the page, which is the correct way to add a correction, a note or an initial to a document that has no text to edit.

Why none of this uploads your file

The whole operation runs in the browser tab. The File API reads the bytes, a PDF library parses them in memory, the pages are rendered to a canvas, and the edited document is written back out as a download that was assembled on your own machine. There is no upload step and no server copy, which matters more here than almost anywhere else on the site: the documents people need to correct are contracts, invoices, offer letters and forms with account numbers on them.

You do not have to take that on trust. Open your browser's developer tools, switch to the Network tab, and edit a PDF. Nothing carrying the file appears.

Questions

Things people ask about this

Can I change the font or the size of the text I edit?

Not in this tool. It matches the original run's font, size and colour deliberately, because the point of it is that the page looks unchanged. Restyling text is a document-authoring job — export to Word, restyle it there, and convert back.

Will the edited PDF still be searchable?

Yes. The replacement text is drawn as real text, not as an image, so it is selectable and searchable like the rest of the document. Note that the covered original text is also still searchable — which is the reason the redaction warning above is not a technicality.

How many pages can I edit at once?

As many as your device can render. The practical ceiling is memory rather than a policy: documents up to roughly fifty megabytes or two hundred pages are comfortable on a laptop, and larger ones are worth splitting first with Split PDF.

Does editing re-compress the images in the document?

No. Images, vector art, embedded fonts and every page you did not touch are copied through byte-for-byte. Only the covered runs are redrawn, which is also why the file size barely changes.