Skip to tool

Python str.casefold() Online

Preview common Unicode case folding for case-insensitive comparisons.

The output updates as you type. The tool processes input in your browser.

Worked example

Case folding is for caseless matching. The demo handles common mappings such as ß to ss and final sigma to sigma. Use the native Unicode mapping for complete coverage.

Sample input
Straße
Sample output
strasse

Python example

print("Straße".casefold())
Expected native output
strasse

Using this operation in Python

The interactive result uses JavaScript. Python str stores Unicode text. Encode to bytes when an API expects UTF-8 or another byte representation.

Python reference