Pseudolocalization Generator
Stress-test layouts with accented, expanded pseudo strings.
Input
1 line · 23 charsResult
1 line · 41 charsPseudolocalization 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
Hello[!!! Hélllöö !!!]Accents, padding and vowel doubling simulate a long translation.
Hello %s[!!! Hélllöö %s !!!]The printf placeholder survives despite expansion around it.
{"a":"Save","a_maxLength":5}{"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
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.
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.
Check lengths
Review the per-string ratio table and any overflow warnings when maxLength hints are present.
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
| Syntax | Example |
|---|---|
| printf | %s, %1$d |
| ICU | {0}, {1} |
| mustache / i18next | {{name}} |
| HTML / XML tag | <b>…</b> |
| Escapes | \n, & |
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
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.