Font
demo.woff2
Output
@font-face { src: url(data:font/woff2;base64,...) }Design Tools
Encode a font file to Base64 in the browser and generate an embeddable @font-face snippet—useful for demos, email templates, and single-file pages that temporarily inline fonts. Files stay local.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
设计配色
Encode a font file to Base64 in the browser and generate an embeddable @font-face snippet—useful for demos, email templates, and single-file pages that temporarily inline fonts. Files stay local.
拖放字体文件至此处
支持 TTF / OTF / WOFF / WOFF2
请先上传字体文件
Font
demo.woff2
Output
@font-face { src: url(data:font/woff2;base64,...) }Large inlined fonts inflate CSS a lot. Production usually prefers separate font files with caching.
No. Reading and Base64 encoding happen locally in the browser.
Tools
Continue with another translated tool for a nearby task.
Base64 Encode/Decode
Encode and decode Base64 in the browser, with standard and URL-safe variants, automatic direction detection, and optional file-to-Base64 conversion. Useful for API debugging and local data prep.
CSS to Tailwind
Paste CSS declarations and map them to Tailwind utility classes where possible. Common layout, spacing, and color rules become standard classes; unmatched values fall back to arbitrary-value syntax.