OS Integration

Local Font Access

Probing…

Local Font Access is a web platform capability in the OS Integration category. Enumerate fonts installed on the system. Supported in Chromium 103+; not available in Firefox and Safari. Requires a secure context (HTTPS or localhost) and a user gesture such as a click or tap.

Secure contextUser gesture

Permission local-fonts: unknown

Try it

Loading demo…

Code

const fonts = await window.queryLocalFonts()
const families = [...new Set(fonts.map(f => f.family))]
console.log(fonts.length, 'fonts across', families.length, 'families')

Browser support

Chromium
103
Firefox
No
Safari
No

Frequently asked questions

Which browsers support Local Font Access?

Supported in Chromium 103+; not available in Firefox and Safari.

Does Local Font Access require HTTPS?

Yes. Local Font Access needs a secure context, so it only works over HTTPS (or on localhost during development).

What is Local Font Access used for?

Enumerate fonts installed on the system.

Can I try Local Font Access in my browser?

Yes. shwcs.net runs a live Local Font Access demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗