Small fi Ligature HTML entity fi

fi is the HTML entity for Small fi Ligature fi (U+FB01). Copy the decimal fi and hex fi codes plus CSS, JavaScript, Python and URL escapes.

Entity
fi
Code point
U+FB01
Unicode name
LATIN SMALL LIGATURE FI
Block
Alphabetic Presentation Forms
Category
Lowercase letter (Ll)
Since
Unicode 1.1
Defined in
HTML5

Codes to copy

HTML namedfiWorks in HTML; in XML only & < > " ' are predefined.
HTML decimalfiWorks in HTML and XML.
HTML hexfiWorks in HTML and XML.
CSScontent: "\FB01";In a stylesheet, for ::before and ::after.
JavaScript"\uFB01"Also valid in JSON.
Python"\ufb01"Python 3 string literal.
Python by name"\N{LATIN SMALL LIGATURE FI}"Readable alternative using the Unicode name.
URL%EF%AC%81Percent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesEF AC 813 bytes.
UTF-16FB011 code unit, which is what JavaScript length counts.

When to use it

fi writes U+FB01 (Small fi Ligature), a small letter from the Unicode Alphabetic Presentation Forms block, encoded since Unicode 1.1. On a page saved as UTF-8 the letter can simply be typed; the entity helps in ASCII-only templates and code samples.

The name comes from the HTML5 list (much of it shared with MathML), so it works in every current browser but not in XML or XHTML served as XML, where the numeric reference is the safe choice.

More latin letters with accents

All latin letters with accents · Every HTML entity · Encode or decode text

Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).