Skip to content
Projects

About

Google Lens for your Windows desktop - translate any on-screen text, in place.

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+2
in 15 days
+7
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original
WinLens logo

WinLens

Translate any text on your Windows screen, right where it is.

Games, images, PDFs, foreign apps: press a shortcut and the translation appears in place of the original.

Download for Windows

Release Downloads Stars Build License: MIT

English · 简体中文


WinLens translating on-screen text to English in place

In place
The translation covers the original, with the same background and a matching font. No pop-up box.

Any window
It reads pixels, not web pages: games, images, PDFs, installers, chats, video subtitles.

No setup
Works out of the box with Google Translate. No account, no API key.

Whole sentences
Lines that wrap are translated as one sentence, then laid back over the same lines.

Chinese, Japanese, Korean
Reads CJK and Latin text on the same screen, and keeps long translations readable.

Private if you want
Use your own LibreTranslate server or a local AI model, and your text stays on your PC.

Quick start

  1. Download WinLens.exe and run it. It lives in the system tray.
  2. Pick the language to translate into.
  3. Press Ctrl + Alt + T anywhere. Press Esc to close the translation.

To translate only part of the screen, press Ctrl + Shift + R and drag a rectangle.

Why WinLens?

Browser translators only work inside web pages. WinLens runs OCR on what is actually on your screen, so it also translates text you can't select or copy:

  • Text in images: photos, screenshots, memes, scanned documents.
  • Games: menus and dialogue, including imported titles.
  • Desktop apps: installers, error dialogs, foreign software.
  • PDFs and documents in any reader, video frames and subtitles.

If a browser tab can already translate it, you don't need WinLens. For everything else on screen, you do.

Control panel

A small tray app. The control panel follows the Windows light or dark mode, or the one you pick under Theme: choose the languages and the translation engine, set the shortcuts, and turn on launch at startup.

WinLens control panel in dark and light mode, and the tray menu

Shortcuts

Action How
Translate the screen Ctrl + Alt + T, tray menu, or Translate screen
Translate a region Ctrl + Shift + R, tray menu, or Region, then drag
Close the translation Esc or the ✕ button
Cancel a slow translation Esc while the loading indicator shows
See the original Hold Space on the overlay
Copy the whole translation Ctrl + C on the overlay
Copy one block Right-click it > Copy original / Copy translation
Change the target language The overlay's top bar (re-translates live), or the control panel
Change a shortcut Control panel > click the shortcut, then press your combination
Open the control panel Double-click the tray icon, or tray menu > Settings

Translation engines and privacy

Choose the engine under Translation engine in the control panel.

Engine Setup Where your text goes
Google Translate (default) None Google's servers, with MyMemory as a fallback
LibreTranslate The address of a server, plus an API key for hosted ones That server only
Local AI model An OpenAI-compatible server such as Ollama or LM Studio, e.g. http://localhost:11434/v1 Your own PC

OCR always runs on your PC, and screenshots never leave it. Only the recognized text is sent to the engine you chose. With LibreTranslate or a local model nothing goes to Google unless you turn on Use Google as a backup. API keys are encrypted for your Windows account (DPAPI).

Installation

Open the Releases page. Most PCs want WinLens.exe; Snapdragon / ARM devices take the win-arm64 files.

Download Size Needs a runtime?
WinLens.exe ~25 MB Yes, the .NET 10 Desktop Runtime
WinLens-win-x64-standalone.zip ~75 MB No, it is bundled. Extract it and run WinLens.exe inside, keeping the files together.
"Windows protected your PC"

The executable isn't code-signed yet, so SmartScreen may warn you on first launch. Click More info > Run anyway. To verify the download first, compare its checksum with the SHA256 on the release page:

Get-FileHash .\WinLens.exe -Algorithm SHA256
Reading more languages (OCR packs)

WinLens uses the Windows OCR engine, so it reads the languages whose OCR pack is installed. Most systems already have their display language. To add another one, for example Chinese or Japanese:

Settings > Time & Language > Language & region > (the language) > Language options > Optional features > add the OCR feature.

Add languages… at the bottom of the Translate from list in the control panel opens that page. New languages show up automatically.

Leave Translate from on Auto: WinLens runs every installed recognizer and keeps what each one reads well, so a mixed-language screen still works.

How it works
Shortcut > capture > upscale > OCR (per script) > paragraphs > translate > overlay in place
  1. Capture the monitor under the cursor, or the region you drag (DPI-accurate on mixed-scaling setups).
  2. Upscale the image about 2x so small UI text is recognized more reliably.
  3. Run every installed OCR recognizer and keep from each only the blocks in its own script, then drop duplicates.
  4. Join lines that continue each other into one paragraph. Menus, lists, chat messages and anything doubtful stay separate.
  5. Translate the whole screen in one request, cached for the session.
  6. Draw a colour- and font-matched box over each original line. A longer translation first uses the free space beside the line or a second row, and only then a smaller font.

To translate strictly line by line, as older versions did, set "GroupParagraphs": false in %AppData%\WinLens\settings.json and restart WinLens.

Building from source
git clone https://github.com/marco-beltrame/WinLens.git
cd WinLens
dotnet build -c Release
dotnet run

Requirements: Windows 10 (build 19041 or later) or 11, the .NET 10 SDK and the Windows Desktop workload (WPF).

Flag Effect
--settings Open the control panel on launch
--translate Run one capture-and-translate on launch

Roadmap

  • Offline translation: no network, no rate limits, more privacy.
  • Stronger OCR for CJK and small text, without Windows language packs.
  • macOS and Linux.
  • Region capture.
  • LibreTranslate and local AI models as translation engines.
  • Light and dark mode.

The issues have the full list.

Contributing

Contributions are welcome: see CONTRIBUTING.md and the Code of Conduct. Issues tagged good first issue are a good place to start. Found a bug? Report it, or suggest a feature.

License and acknowledgements

MIT, see LICENSE. Translation through the Google Translate endpoint with a MyMemory fallback; tray integration with Hardcodet.NotifyIcon.Wpf; built with .NET 10 and WPF.

Explore related projects

Loading…