How to translate a PowerPoint presentation and keep the layout
Why translated slides overflow their text boxes, what VibeQL does to fit the text back in, and how to translate a PPTX file in the web app or with the API.
· 7 min read
To translate a PowerPoint presentation and keep the layout, use a tool that edits the PPTX file in place: it must replace the text in each text box, keep the formatting of every word, and shrink text that no longer fits. VibeQL does this. You upload a .pptx file, choose a language, and download a .pptx file with the same slides, positions, colours and images.
This post explains why slides break when you translate them, what VibeQL does about it, and how to translate a deck in the web app or with the API. It also lists what VibeQL cannot translate yet.
Why do slides break when you translate them?
A slide is not a page of flowing text. Each title, bullet list and label sits in its own box, with a fixed width and height. The designer sized each box for the original text.
Translations are often longer than the source. German, French, Portuguese and Spanish text usually takes more space than English. The box does not grow, so the new text runs past the bottom of the box, over the next shape, or off the slide.
PowerPoint has three settings for text that does not fit a box:
- Do not autofit. The text overflows the box.
- Shrink text on overflow. PowerPoint makes the font smaller. The file stores how much smaller, and that value was set for the original text.
- Resize shape to fit text. The box grows. A taller box can cover the shapes below it.
A simple translator only swaps the words. It does not touch these settings, so the result depends on what the designer chose. Often you get overflow on half the slides.
There is a second problem. PowerPoint splits text into runs. A run is a piece of text with one format: one font, size, colour, bold or italic. A tool that translates run by run gets broken grammar, because word order changes between languages. A tool that translates the whole paragraph as plain text loses the bold word and the coloured word.
What VibeQL does with a PPTX file
A PPTX file is a set of XML files in a zip archive. VibeQL opens the archive, changes only the text, and leaves the rest of the XML as it was. Slide size, positions, shapes, images, animations and themes stay untouched.
It translates whole paragraphs and keeps inline formatting
Each paragraph becomes one segment. The most common format in the paragraph becomes the base. Every other format, such as a bold word or a red word, gets a small tag around it. The translation must return the same tags. Word order can change, so the bold word can move in the sentence, but it stays bold.
We check every segment. If a tag is missing or broken, VibeQL translates that paragraph again on its own. If it still fails, VibeQL uses a plain translation in the paragraph’s base format for that one paragraph. A broken tag never reaches your slide.
It translates more than the slide text
VibeQL translates text in these places:
- Titles, body text, text boxes and shapes on every slide, also inside groups.
- Tables on slides.
- Speaker notes. Slide number, date and header placeholders in notes are skipped.
- SmartArt diagrams.
- Charts: titles, series names and category labels.
- Text on slide layouts and masters that is not a placeholder, such as a fixed footer line.
Text with no letters, such as a page number or a figure like “42%”, stays as it is.
It fits the new text back into each box
This is the step that keeps slides readable. For every text box on a slide, VibeQL measures the text twice: once before translation and once after. The measurement uses the box size, its inner margins, the number of columns, the font size of each run, bold, line spacing and paragraph spacing. Widths come from fonts with the same metrics as Arial and Times New Roman.
If the translated text needs more height than both the box and the original text, VibeQL sets the box to Shrink text on overflow. It picks the largest font scale that fits, in small steps, down to about 55% of the original size. When the scale goes below 90%, it also reduces the line spacing a little. For a box that does not wrap text, it compares the width of the longest line instead of the height.
Boxes set to Resize shape to fit text get the same treatment. VibeQL shrinks the text instead of growing the box, because a bigger box would cover the shapes around it.
The result is a normal PowerPoint setting. You can see it, change it or turn it off in PowerPoint under Format Shape, Text Options, Text Box.
What we measured
Our test set has 20 hard files, and one of them is a 59-slide deck. We translate the set from English to Brazilian Portuguese and check every output. Across the set, there were 0 broken tags and under 2% English left. The English that stayed was names.
How to translate a PPTX file in the web app
- Open the app and choose Files.
- In Translate from, keep Detect language or pick the source language.
- In Translate into, pick the target language.
- Drag the
.pptxfile onto the page, or select Choose a file. - Select Translate into with your language. A progress bar shows the status.
- When you see Your translation is ready, select Download.
The translated file is available for 24 hours. The PowerPoint translator page and the documents page explain more about file translation.
How to translate a PPTX file with the API
The VibeQL API uses the same requests as the DeepL API. You upload the file, check the status, and download the result.
# Upload. The response has a document_id and a document_key.
curl https://vibeql.com/v2/document \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
-F "file=@slides.pptx" \
-F "target_lang=DE"
# Check the status until it is "done".
curl https://vibeql.com/v2/document/DOCUMENT_ID \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
-d "document_key=DOCUMENT_KEY"
# Download the translated file.
curl https://vibeql.com/v2/document/DOCUMENT_ID/result \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY" \
-d "document_key=DOCUMENT_KEY" \
-o slides.de.pptx# pip install deepl
import os
import deepl
client = deepl.DeepLClient(os.environ["VIBEQL_API_KEY"], server_url="https://vibeql.com")
client.translate_document_from_filepath("slides.pptx", "slides.de.pptx", target_lang="DE")// npm install deepl-node
import * as deepl from "deepl-node";
const client = new deepl.DeepLClient(process.env.VIBEQL_API_KEY, { serverUrl: "https://vibeql.com" });
await client.translateDocument("slides.pptx", "slides.de.pptx", null, "de");For a small deck, one request can also do all three steps. It waits up to 90 seconds and returns the file:
curl "https://vibeql.com/translator/document:translate?targetLanguage=de&api-version=2024-05-01" \
-H "Ocp-Apim-Subscription-Key: $VIBEQL_API_KEY" \
-F "document=@slides.pptx" \
-o slides.de.pptx
Translate documents has every parameter and status. How a document translation API works explains polling, billing and errors. You can also ask Claude to translate a deck through the MCP server.
Tips for a better translated deck
- Leave room in the original. If you design a deck that you know you will translate, do not fill every box to the edge. Free space means less shrinking.
- Check charts. VibeQL translates the labels you see on the chart. The data sheet inside the chart is a separate embedded file, and VibeQL does not translate it. If you open Edit Data in PowerPoint, the labels can come back from that sheet in the original language.
- Check tables. Table text is translated, but the fit step works on text boxes and shapes, not on table cells. A long cell can make a row taller.
- Look at boxes side by side. VibeQL shrinks each box on its own. Two boxes that had the same font size, such as two columns, can end at slightly different sizes. Set them to the same size by hand if it matters.
- Replace text in images. A screenshot, a logo or a chart exported as a picture keeps its original text. Make a new image in the target language.
- Check the speaker notes. They are translated too. If you present from notes, read them once.
- Pick the right language code. Use
PT-BRorPT-PT,EN-USorEN-GB. The full list is on languages.
What VibeQL cannot do yet
- WordArt and embedded OLE objects are not translated. An embedded spreadsheet or document keeps its original text.
- Text inside images is not translated.
- Text that grows sideways into other shapes is not always detected. For example, a label next to an arrow can run into the arrow.
- Very long translations get small text. If the box is small and the translation is much longer, the text can still overflow at the minimum scale. Shorten the source text or make the box bigger.
How much does it cost?
VibeQL counts the characters of the source text. There is no minimum charge per document, so a 10-slide deck costs only its 10 slides of text. DeepL bills each document as at least 50,000 characters. The DeepL API 50,000-character minimum shows what that does to a bill. To estimate your own cost, use the translation cost calculator, or see all plans on the pricing page.
The same method works for Word files. See how to translate a Word document and keep the formatting. For PDFs, read how we keep the layout when we translate a PDF.
Try it
VibeQL is in beta and sign-up is closed. Join the waitlist to get an account. The file limits for each plan are in limits and errors.