Online translators are convenient, but your text is processed on someone else's servers. LibreTranslate is a free and open-source machine translation service you can run on your own PC instead. Its translation engine is powered by the open-source Argos Translate library rather than Google or Azure, and the project describes it as self-hosted and offline capable. This guide follows LibreTranslate's official installation documentation.
What you need
A Windows, macOS or Linux PC.
Python 3.8 or newer, which LibreTranslate's docs list as the requirement for the Python install. On Windows, you can install Python with winget; see our winget guide.
An internet connection during setup, to install LibreTranslate and its language support.
Optional: an NVIDIA GPU with Docker, if you want to try GPU acceleration (see below).
Step 1: install LibreTranslate
Open a terminal (PowerShell or Windows Terminal on Windows) and run:
pip install libretranslate
Step 2: start the server
Run:
libretranslate
By default, LibreTranslate installs support for all available languages, which takes time and disk space. To load only the languages you need and reduce startup time, use the --load-only argument with language codes. For English, French and Spanish:
libretranslate --load-only en,fr,es
Step 3: translate in your browser
Once the server is running, open http://localhost:5000 in a web browser. That opens LibreTranslate's web interface. LibreTranslate's API reference also lists a /translate_file endpoint for translating files.
Step 4: use the API from scripts and apps
LibreTranslate is built as an API, so other tools can use it. The project's quickstart shows a request like this, which translates "Hello" from English to Spanish:
curl -X POST http://localhost:5000/translate -d q="Hello" -d source=en -d target=es
The API reference also lists /detect for detecting a language and /languages for listing the languages your server supports.
Keep it on your own PC
By default, LibreTranslate binds to 127.0.0.1 on port 5000, so only your own PC can reach it. You can change these with the --host and --port arguments. Only open it to other devices if you understand the security implications, and look at LibreTranslate's API key options first.
GPU acceleration
LibreTranslate's docs say you can use hardware acceleration on a machine with CUDA 12.4.1 and nvidia-docker installed, using its CUDA Docker Compose file:
docker compose -f docker-compose.cuda.yml up -d --build
That's run from a copy of the LibreTranslate repository. The standard Python install doesn't need a GPU.
Docker and production use
The docs also offer a Docker setup: clone the repository, then run run.bat on Windows or ./run.sh on Linux and macOS. LibreTranslate recommends running it with Gunicorn or Docker in production to avoid memory leaks, which is worth doing if you leave it running all the time.
LibreTranslate is a dedicated translation engine rather than a chatbot. If you want subtitles for live audio, Windows 11 has its own feature; see how to use Live Captions and translation. For a wider look at what you can run on your own PC, see our best free local AI apps and our local AI vs cloud AI comparison.
Our verdict
LibreTranslate is a simple way to keep translation on your own PC: install it with pip, start it with --load-only to limit the languages, and use the browser page at localhost:5000 or the API. It's free and open source, needs no GPU, and stays local by default. Check the results on your own text, especially for anything important, because we haven't tested its accuracy.