Other PDF Issues

How to Fix White Squares Appearing Instead of Spaces When Copying PDF Text

Camila MilosovichCamila Milosovich Oct 28, 2026 869 views

Question details

The user is trying to resolve an issue where spaces are replaced by white square characters when copying text from a PDF document.

How to Fix White Squares Appearing Instead of Spaces When Copying PDF Text
Product
PDF
Device & OS
not provided
Scenario
Copying and pasting text from a PDF document into a word processor or text editor.
Observed behavior
The text copies with white squares (often U+25A1 characters) in place of normal spaces, even though the PDF document visually appears to have correct spacing.
Before you start

Paste the copied text into a plain text editor like Notepad first to confirm that the issue stems from the PDF's internal encoding rather than your word processor's formatting settings.

Solution 1Recommended

Use Find and Replace to Correct the Copied Text

The fastest way to resolve the issue for text you have already copied is to perform a global search-and-replace operation in your destination document.

PDFs rely on underlying font encodings. Sometimes, a source application maps the space character to an incorrect Unicode value, causing it to render as a unprintable character or white square when extracted.

You can easily fix this formatting error globally without having to manually delete and replace every single square.

1
Paste the text

Copy the text from your PDF and paste it into your word processor (such as WPS Writer or Microsoft Word).

2
Copy the white square character

Highlight one of the white squares in the pasted text and press Ctrl+C to copy it to your clipboard.

3
Open Find and Replace

Press Ctrl+H to open the Find and Replace dialog box.

4
Execute the replacement

Paste the white square into the 'Find what' field, type a single space using your spacebar into the 'Replace with' field, and click 'Replace All'.

Use Find and Replace to Correct the Copied Text
Quick Fix: This method instantly cleans up your document and restores normal word spacing across all pasted paragraphs.
Advanced PDF Editor

Easily Fix PDF Text Issues with WPS Office

WPS Office provides a powerful suite of PDF tools, including highly accurate OCR and direct PDF-to-Word conversion, enabling you to extract text perfectly without worrying about broken font encodings or white squares.

  1. 1. Open PDF in WPS: Launch WPS Office and open the PDF document containing the text you want to extract.
  2. 2. Use PDF to Word or OCR: Go to the 'Tools' tab and select 'PDF to Word' to convert the document, or use the 'OCR' tool to scan and extract the text visually.
  3. 3. Copy Clean Text: Once converted or scanned, copy the perfectly formatted text without any white square encoding errors.
Built-in OCR to extract text accurately based on visual layoutOne-click PDF to Word conversion to instantly fix formatting errorsDirect text editing capabilities within the PDF documentFull compatibility with all standard PDF and Microsoft Word formats
microsoft office alternative - wps office

Frequently Asked Questions

Why does the PDF look fine on screen but copy with white squares?

The PDF visually displays the text correctly based on drawn shapes, but the underlying font encoding maps the space character to an incorrect Unicode value (such as U+25A1). Copying and pasting relies on this underlying code, not the visual display.

Can I prevent white squares when creating a PDF myself?

Yes. When saving or exporting a document to PDF, ensure you are using standard system fonts and check the 'embed fonts in the file' option. This preserves proper character mapping so text copies correctly.

Does using 'Paste as Plain Text' fix the white square issue?

Usually, no. 'Paste as Plain Text' strips formatting like bold, italics, and font sizes, but it preserves the underlying characters. Since the source character itself is encoded as a white square, it will still paste as one.

Is there a shortcut to remove all white squares at once?

Yes. In your word processor, press Ctrl+H to open the Find and Replace tool. Paste the white square into the 'Find' box, press the spacebar once in the 'Replace' box, and click 'Replace All'.