This tool removes the accents and the cedilla from Portuguese text, producing a plain ASCII version. It is built for cases where accented characters cause problems: URL slugs, file names, usernames, search indexes, and legacy systems that only accept unaccented letters.
How it works
The tool relies on Unicode normalization rather than a hand-written lookup table:
"coração".normalize("NFD") -> c o r a c ̧ a o ̃ (base letters + combining marks)
remove U+0300..U+036F -> c o r a c a o
result -> "coracao"
NFD decomposition splits each precomposed accented letter into its base letter
plus a separate combining mark. The tool then deletes every combining mark in
the Unicode block U+0300 to U+036F, which covers the acute, grave,
circumflex, tilde, diaeresis, and cedilla. The base letters remain, so the word
stays readable.
Tips and notes
The mapping is exactly what Portuguese needs: á à â ã to a, é ê to e,
í to i, ó ô õ to o, ú ü to u, and ç to c. Because the method is
generic, it also strips accents from any other Latin-script text you paste, so
São Paulo becomes Sao Paulo and José becomes Jose. Everything runs in
your browser, and the counter tells you how many marks were removed so you can
confirm the text actually contained accents.