Prompt

Why does DeepL API change my formatting when I translate text?

Technology / API Platforms1 observationLast seen Nov 2, 2026

Latest observation

Nov 2, 2026OpenAI APIWeb search: off

DeepL can change formatting because, by default, it tries to optimize the translated output as text, not preserve every character layout exactly as-is.

Common reasons:

  • Whitespace normalization: extra spaces, tabs, and line breaks may be adjusted.
  • Punctuation changes: quotes, dashes, ellipses, and spacing around punctuation may be localized.
  • Paragraph reflow: sentence and paragraph structure may change to sound natural in the target language.
  • HTML/XML handling: if you send markup, DeepL may interpret tags and treat surrounding text differently depending on parameters.
  • Language-specific typography: some languages require different spacing or punctuation conventions.

If you want to preserve formatting more closely, check these options in the API:

  1. Use tag_handling if translating HTML or XML
    This tells DeepL to respect tags instead of treating everything as plain text.

  2. Use outline_detection / splitting_tags / non_splitting_tags
    These help control how text is segmented around markup.

  3. Use preserve_formatting
    This can reduce formatting changes, though it does not guarantee exact preservation.

  4. Send text in smaller, structured chunks
    This can help avoid unexpected reflow or paragraph merging.

  5. Avoid relying on plain-text line breaks for layout
    If exact layout matters, manage formatting in your application rather than expecting translation to preserve it.

If you want, I can also show you:

  • how to configure DeepL API to preserve HTML formatting, or
  • a concrete example of request parameters that minimize formatting changes.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.