DevTools Logo

Pseudolocalization Generator

Pseudolocalization Generator

Stress-test layouts with accented, expanded pseudo strings.

Runs in your browser
Try an example

Input

1 line · 23 chars

Result

1 line · 41 chars

Pseudolocalization Generator transforms UI strings into accented, padded, expanded pseudo-locale text that stresses layouts before translations exist. It tokenizes placeholders such as %s, {0}, {{name}} and HTML tags first so they pass through byte-identical, then applies the accent map and expansion to free text only. Paste plain lines, a JSON object, a JSON array or Android strings.xml; the output keeps the original shape and includes a per-string length report and overflow warnings.

Examples

Input
Hello
Output
[!!! Hélllöö !!!]

Accents, padding and vowel doubling simulate a long translation.

Input
Hello %s
Output
[!!! Hélllöö %s !!!]

The printf placeholder survives despite expansion around it.

Input
{"a":"Save","a_maxLength":5}
Output
{"a":"[!!! Sáávéé !!!]","a_maxLength":5}

The sibling maxLength hint is kept and the value is flagged as over the limit.

About this tool

Pseudolocalization is an i18n stress test: you replace real copy with deliberately longer, accented text and look for truncation, overflow and hardcoded strings. This generator produces that text deterministically in your browser.

The tokenizer protects placeholders before any transformation. printf tokens, ICU arguments, mustache/i18next expressions, HTML/XML tags and escape sequences pass through unchanged, so your runtime formatting still works with the pseudo string.

Input shapes are mirrored on output: plain lines stay lines, JSON stays JSON, and Android XML stays XML. A length table shows original and pseudo lengths with the expansion ratio, and optional maxLength hints produce an overflow report.

What this tool does not do

  • The accent map is designed for Latin script; CJK and right-to-left scripts are not simulated.
  • The XML scanner handles simple strings.xml resources, not arbitrary XML with namespaces or nested elements.
  • Expansion ratios are approximate targets, not guarantees for every string.

How to use this tool

  1. Paste strings

    Paste plain lines, a JSON object or array, or Android strings.xml. The shape badge shows what was detected; you can override it.

  2. Set the transform

    Toggle accents and bracket padding, and choose light, heavy or no expansion. Expansion targets roughly 1.2x or 1.5x the original length.

  3. Check lengths

    Review the per-string ratio table and any overflow warnings when maxLength hints are present.

  4. Copy or download

    Copy the transformed block or download it with the same shape as the input.

Use cases

Find truncated UI

Pseudo-locale a build and look for cut buttons, clipped labels and broken flex layouts before real translations arrive.

Audit hardcoding

Strings that remain unchanged in a pseudo build are candidates for hardcoded copy that was missed during i18n.

Resource file generation

Transform JSON or Android XML resource files into pseudo variants with keys, attributes and placeholders intact.

Protected tokens

SyntaxExample
printf%s, %1$d
ICU{0}, {1}
mustache / i18next{{name}}
HTML / XML tag<b>…</b>
Escapes\n, &#38;

Placeholders are excluded from expansion so ratios describe visible text only.

Common mistakes

Mistake:Expanding placeholders along with the text.

Fix:This tool tokenizes %s, {0}, {{name}} and tags first, so they are never accented or expanded. Only free text changes.

Mistake:Reading the ratio as a real translation length.

Fix:Pseudo expansion is a stress test, not a prediction. German, Finnish and other languages expand differently; use it to find layout limits, not to estimate final copy length.

Mistake:Treating decorative Unicode stylers as i18n tests.

Fix:Font stylers change glyphs for looks and can break screen readers. Pseudolocalization produces functional resource strings that keep placeholders working.

Frequently asked questions

What is pseudolocalization?

It is a testing technique where UI strings are replaced with altered text — accented characters, bracket padding and extra length — to reveal layout problems such as truncation and overflow, and to spot hardcoded strings that were never externalized for translation.

How does it keep %s and {0} working?

The tokenizer extracts protected tokens first: printf specifiers, ICU arguments, mustache expressions, HTML/XML tags and escape sequences. Only the free-text segments between them are transformed, so the placeholders are byte-identical in the output and your runtime formatting still works.

How much do pseudo strings expand?

Light expansion targets about 1.2x the visible text length and heavy expansion about 1.5x by doubling vowels and other segments. Bracket padding adds a fixed prefix and suffix on top. The live table reports the actual per-string ratio.

Can I pseudo-loc JSON and XML?

Yes. JSON objects, JSON arrays, plain lines and Android strings.xml are detected automatically. Keys and attributes stay untouched and only string values or text content are transformed, so the output can be dropped back into your resource pipeline.

Why do untouched strings reveal hardcoding?

In a pseudo-localized build every externalized string should look transformed. If a label stays in plain English, it was likely hardcoded in a template or component instead of being loaded from your resource files — exactly the bug this test is meant to expose.

References & standards