Strip Text Streams

Remove selectable text while leaving raw vector artwork and photo plates.

100% Client-Side • 100% Free

Remove All Text from PDF (Keep Images & Shapes)

Strip text streams, headers, and labels while keeping background designs, vector artwork, photos, and empty form templates.

🔤

Select PDF to Remove Text

or drag and drop your document here

Change File
In-Depth Technical Guide•8 min read•2RUN Engineering Team
100% Client-Side • Zero Upload

The Authoritative Guide to Removing Text from PDF In-Browser: Redaction vs. Stream Sanitization

⚡How to Remove Text from a PDF Document In-Browser

1

1. Import Your Target PDF File

Drag and drop your PDF into the secure redaction canvas, or click Browse to select the file from your local computer.

2

2. Select Text or Region to Remove

Click and drag your cursor over the sensitive text passage, or draw a bounding box over the area you need to physically purge.

3

3. Choose Redaction Styling

Select whether to replace the removed area with a clean white block (erased appearance) or a formal black redaction bar.

4

4. Execute Permanent Sanitization

Click 'Purge Text & Redact' to physically excise text operators from the content stream or apply high-resolution pixel burn-in.

5

5. Download Sanitized PDF

Save your forensically clean, sanitized document immediately to your device with zero cloud processing or data retention.

Removing sensitive text—such as personal identifying information (PII), confidential financial figures, trade secrets, internal corporate memos, or outdated legal clauses—is a critical requirement across legal, enterprise, and governmental workflows. Whether preparing discovery disclosures for litigation, sanitizing public records for Freedom of Information Act (FOIA) requests, or updating legacy PDF documentation, professionals must guarantee that confidential text is permanently, irrevocably eliminated.

However, text removal in PDF is fraught with catastrophic security misunderstandings. In standard office workflows, users frequently attempt to 'remove' or 'redact' text by drawing a black or white rectangle over the words, or by changing the font color to match the page background. Under the ISO 32000 standard, this does NOT remove the text! The underlying text glyphs remain completely intact within the page content stream (/Contents), easily discoverable by anyone using search (Ctrl+F), copy-paste, or automated forensic text extractors.

Our client-side Remove Text tool provides genuine, verifiable text removal and redaction directly within your browser. By tokenizing the PDF page content stream, neutralizing text rendering operators, or deploying high-resolution lossless rasterization burn-in, our engine ensures that sensitive text is physically purged from the file byte stream—all with 100% client-side privacy and zero cloud uploads.

Read the full technical guide

The Illusion of Visual Redaction: Why Overlays Fail Catastrophically

The history of electronic document security is riddled with catastrophic redaction failures involving high-profile government agencies, international intelligence services, and global law firms. In almost every case, the failure stemmed from a fundamental misunderstanding of the PDF graphic model.

In PDF architecture, a page is rendered by executing an ordered sequence of drawing operators inside the /Contents stream. If an author draws a filled black rectangle over a paragraph, the PDF viewer first renders the text glyphs, and then paints the opaque rectangle on top of them. Visually, the text appears obscured. But structurally, the text operators (BT, Tf, Tm, Tj, ET) remain untouched in the underlying content stream.

Any recipient can simply drag their cursor across the black box, copy the text to their clipboard, or paste it into a text editor to read the 'redacted' information instantly. Furthermore, search engines and screen readers parse the text stream directly, rendering visual overlays completely useless for data protection.

Low-Level Content Stream Surgery: Tokenizing BT, ET, and Tj Operators

Achieving genuine vector-level text removal requires surgical deconstruction of the PDF page content stream. Under ISO 32000-1 Section 9, all text rendering takes place within designated text objects enclosed between BT (Begin Text) and ET (End Text) operators.

Within a text block, characters are positioned and drawn using specific operator sequences:

1. /Font size Tf: Selects the active font resource and point size.

2. Tm (Text Matrix) and Td (Text Move): Establish the 2D coordinate transformation matrix that positions characters on the Cartesian plane.

3. Tj, TJ, ', and ": Draw character strings or arrays of strings with kerning offsets.

To genuinely remove text from the content stream, an engine must decompress the /Contents stream (typically encoded via FlateDecode / Zlib), lexically tokenize the PostScript-like operator stream, calculate the bounding box of each glyph sequence using the font's metric tables, and excise or replace the target text tokens. By physically stripping the character codes from the Tj/TJ operators and recompressing the stream, the text is permanently obliterated from the document structure.

The Challenge of Complex Encodings and Font Subset CMaps

While content stream parsing is theoretically straightforward, production PDF files introduce immense typographic complexity through font subsetting and custom ToUnicode CMaps. When a PDF is created, authoring applications rarely embed full fonts; instead, they embed a minimal subset of glyphs assigned to arbitrary internal character codes (e.g., character code 1 might map to the letter 'E', while character code 2 maps to 'x').

If the document's /ToUnicode CMap is missing, corrupt, or non-standard, parsing character strings directly from Tj operators becomes unreliable. In such scenarios, attempting naive string replacement can inadvertently corrupt surrounding typography, shift line spacing, or leave phantom glyph fragments visible on the page.

Our application addresses this challenge with dual-engine flexibility: for well-structured digital documents, it performs precise coordinate-based content stream excision; for complex documents with corrupt CMaps or scanned visual text, it provides high-resolution irreversible burn-in.

Irreversible Pixel-Level Burn-In: The Gold Standard for Scanned Documents

When handling scanned paper records, court filings with embedded OCR layers, or PDFs with heavily obfuscated vector outlines, the only mathematically foolproof method of text elimination is high-resolution pixel-level burn-in.

In this workflow, our engine renders the target PDF page onto an isolated, ultra-high-resolution HTML5 Canvas at 300 DPI (print publication quality). The specified text coordinates are overwritten with solid color pixels, physically replacing the pixel data in the canvas memory buffer. The page is then re-encoded as an uncompressed or losslessly compressed image XObject embedded inside a clean, newly synthesized PDF page.

Because the original content stream, text layer, OCR invisible text, and vector glyph tables are completely discarded and replaced with a single rasterized bitmap, there is zero residual vector data, no hidden OCR text, and no slack metadata. It provides an absolute, forensically impenetrable guarantee of text destruction.

Client-Side In-Browser Execution for Legal and Regulatory Immunity

Sanitizing sensitive records for litigation, FOIA compliance, or regulatory filing under GDPR and HIPAA presents zero margin for error. Uploading unredacted discovery documents, trade secret filings, or patient medical records to third-party web servers creates immediate regulatory breach liabilities and waives attorney-client privilege in many jurisdictions.

2run.tools eliminates these catastrophic risks by executing 100% of the text removal and redaction pipeline inside your browser's local sandbox. Powered by WebAssembly and client-side JavaScript, your source document is loaded into local RAM, sanitized, and recompiled without a single byte departing your machine. You can even disconnect your network cable and perform the entire redaction in a completely air-gapped environment.

💡Pro Tips for Permanent PDF Text Removal and Redaction

  • •Never use simple annotation overlays or drawing tools to hide text; always use true text removal or flattening to eliminate underlying glyphs.
  • •After downloading your sanitized PDF, test it by pressing Ctrl+F (Cmd+F) and searching for the removed words to verify they cannot be found.
  • •Try dragging your cursor across the redacted area and copying to clipboard; if the redaction was successful, no hidden text will be copied.
  • •For legal discovery filings, verify whether court rules mandate black redaction bars or white spacing; our tool allows you to select either styling.

🛡️Content Stream Tokenization, Operator Excising, and Raster Rebuilding

Our engine processes text removal through two complementary pathways: in stream-mode, it unzips the page's /Contents stream using FlateDecode, tokenizes the PostScript byte stream into an Abstract Syntax Tree (AST), identifies text blocks bounded by BT and ET, checks text matrix coordinates against the target removal rectangle, and strips the corresponding Tj/TJ operators before re-encoding the stream. In burn-in mode, it renders the page at 300 DPI via pdf.js to an OffscreenCanvas, overwrites target pixel buffers, and compiles a fresh PDF document embedding the rasterized image, permanently eradicating any trace of original vector glyphs, invisible OCR layers, or font metadata.

Stack: WebAssembly • Multi-threaded Web Workers • HTML5 Canvas API

Privacy: Files never leave your device or touch a cloud buffer; analytics run only with your consent.

Why choose client-side browser tools?

When you compress an image or merge a PDF on 2run tools, the code executes inside your browser tab using WebAssembly and Web Workers. We never stream your bytes to a remote cloud server. Your private financial reports, personal photos, and legal agreements never leave your device.

Total PrivacyIn-Browser
Instant ProcessingFast RAM
Truly UnlimitedZero Limits

Frequently Asked Questions About Removing PDF Text

Can someone recover text removed using this tool by copying and pasting?▾

No. Unlike drawing black boxes over text in basic PDF viewers, our tool physically strips the text operators from the content stream or rasterizes the page, ensuring no text remains in the clipboard or search index.

Will removed text show up in search engines or screen readers?▾

No. Because the underlying text glyphs and character codes are completely excised from the PDF byte stream, search engines and screen readers have nothing to index or read aloud.

What is the difference between white redaction and black redaction?▾

White redaction erases the text cleanly, leaving empty white space as if the text was never there. Black redaction places a solid black bar, formally indicating to readers that information was deliberately redacted.

Does this tool remove invisible OCR text behind scanned images?▾

Yes. When you use our burn-in redaction mode, any invisible OCR text layer behind the image is completely destroyed, leaving only the sanitized visual pixels.

Will removing text alter the formatting or position of other paragraphs?▾

No. Our tool selectively excises the specific targeted text tokens or pixel coordinates, leaving surrounding paragraphs, headers, and images at their exact original positions.

Are my sensitive documents uploaded to any remote server?▾

Never. All document rendering, stream tokenization, and PDF re-serialization take place 100% locally inside your web browser. No document data or text strings are ever sent over the internet.

Sites Loading Under 0.8s
100/100 Lighthouse web engineering
Audit
Dev Arm for Design Agencies
White-label • Bilateral NDA
Partner
Technical SEO by Code
Deep Schema • Zero waste
Scale SEO
Custom Web Apps & SaaS
100% code ownership • Edge scale
Build
Turn Traffic into Sales
+34% sales lift • Fix bottlenecks
Audit