CHINESE INITIALS · A LITTLE LAB

A little
alter ego for 中文

喵 becomes M. 世界 becomes SJ. Pyfl is a JavaScript library that turns Chinese characters into pinyin initials, so titles, contacts, and little ideas are easier to find.

A few letters are enough to bring a title back to mind.
THE FIRST LETTER CLUBNO. 001 / 拼
Pyfl, a witch with short white hair, holding 拼 and P cards
INITIALM
pyflA LITTLE MAGIC
01 / PLAY WITH LETTERSLETTER LAB

Same words. A new shape.

Type something and meet its initials. English, numbers, and symbols stay just as they are.

Up to 2,000 characters at a time.5 / 2,000
NHSJ
Try a little inspiration

Conversion runs in this browser. Your input is not sent to a server.

Built-in phrase rules turn 重庆银行 into CQYH and 音乐 into YY. Unmatched text uses default character readings; names and places may need custom rules.

Same character. Different words.

Compare the same dictionary with and without phrase rules. Select a word to try it above.

WordCharacter onlyWith phrases
ZQCQ
ZLZL
YXYH
XZXZ
YLYY
KLKL

You are reading the static version. Enable JavaScript to type, search, and copy.

02 / FIND A LITTLE FASTERIN PRACTICE

Remember a few letters. Find the whole idea.

Try CQ or ZQ for 重庆银行, YY or YL for 音乐, or search the titles in Chinese.

月亮邮局YLYJ

Search matches Chinese text and consecutive initials across pronunciation candidates. Rare readings may also match; a result does not confirm pronunciation. Full pinyin and skipped-letter matching are not supported.

MY LITTLE COLLECTION

7 titles

  • 魔法少女喵喵酱MFSNMMJ
  • 周末去看海ZMQKH
  • 月亮邮局YLYJ
  • 给未来的自己GWLDZJ
  • 夏日观察日记XRGCRJ
  • 重庆银行CQYH
  • 音乐收藏夹YYSCJ
CHINESE / INITIALS
03 / TAKE IT WITH YOUGET STARTED

A small job. One line.

Text in, initials out. A simple API with clear limits.

npm install pyfl
import pyfl from "pyfl/modern";

pyfl("你好,世界"); // "NH,SJ"
pyfl("重庆银行 / 音乐 / 行走"); // "CQYH / YY / XZ"
JAVASCRIPTpyfl(text) → string

This playground uses the modern phrase mode of pyfl 2.1.0, available on npm. Usage documentation

Conversion uses pyfl/modern; lookup uses multi-pronunciation search. Rebuild existing indexes when switching entries. Modern entry guide

01Common characters & phrases
The common dictionary covers 8,105 characters with 36 built-in phrase rules. Unlisted characters, emoji, and symbols are preserved.
02Initials only
Phrase rules use longest matching, without general contextual disambiguation or full pinyin. Use createConverter overrides for names, places, and special readings.
03Whitespace & types
Empty strings and ASCII-space-only strings return empty. Other whitespace is preserved. Non-strings use template-string coercion.

SMALL LETTERS, LITTLE WONDERS.

Give your next idea a way to be found.

Take pyfl with you