⬆️ Superscript Text Converter
📐 工作原理与说明
五种模式:auto-digits 自动识别数字段转上 / 下标;auto-all 全量转换上下标;super-all / sub-all 仅单向全量;sub-digits 仅数字转下标;基于 Unicode 上下标字符映射表逐字符替换
Convert selected text into superscript and produce copyable Unicode or HTML superscript code for chemical formulas, footnotes and mathematical notation.
💡 自动将数字转为上标/下标 Unicode 字符。也可手动选择转换模式。
📋 转换结果
请输入文本...
📚 深度解析:上标文字生成器
💡 常见使用场景
- 化学式与数学公式展示:把指数、阶码转为上标形态(如 x²、CO₂ 的 2 用上标)。
- 脚注与修订标记:在正文标注上标序号,对应文末注。
- 单位与版本号:如 m²、v2 的轻量展示。
生成 x 的平方
输入「x2」,上标模式输出「x²」;也可用上标数字区块直接展示,适合化学式 H₂O、面积 m² 等无需公式环境的场景。
❓ 常见问题(FAQ)
- 上标和普通小字区别?
- 上标用专用 Unicode 上标码位(² ¹ ⁿ),排版位置更高且不被当作普通数字参与计算;普通缩小的字只是视觉变小。
- 所有数字都有上标吗?
- Unicode 上标有 ⁰¹²³⁴⁵⁶⁷⁸⁹ 及 ⁺⁻⁼⁽⁾ⁿ,连续多位可直接拼接;无对应码位的符号需借助富文本/HTML <sup>。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Character block | superscript characters sit in the superscripts and subscripts block | Unicode Superscripts and Subscripts, U+2070 |
| Incomplete coverage | the block lacks many Latin letters so absent glyphs need markup instead | Unicode UAX #15, normalisation forms |
| Semantic difference | superscript characters are separate code points and differ from styled base letters | W3C CSS Text Level 3, vertical position |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准