⚙️ Properties 转 YAMLProperties to YAML
Java .properties / key=value → YAML 映射。Java .properties / key=value → YAML map.
使用说明与常见问题How-to & FAQ
「Properties 转 YAML」是什么?What is the Properties to YAML tool?
Java .properties / key=value → YAML 映射。Java .properties / key=value → YAML map.
如何使用「Properties 转 YAML」?How do I use the Properties to YAML tool?
在「Properties 转 YAML」中,先在上方输入或粘贴内容,然后点击「转换」、「复制」按钮即可。In the Properties to YAML: Type or paste your input above, then click "Convert", "Copy".
支持哪些写法?Which syntax is supported?
每行一个 key=value,没有等号时也接受 key: value;以 # 或 ! 开头的注释行和空行会跳过,值两端的引号会去掉。键原样作为 YAML 的键,a.b 这样的点号键不会展开成嵌套。YAML 由 js-yaml 生成。One key=value per line, or key: value when there is no equals sign; comment lines starting with # or ! and blank lines are skipped, and quotes around a value are removed. Keys are used as-is, so a dotted key such as a.b is not expanded into nesting. The YAML is written with js-yaml.
代码或数据会被上传吗?Is my code or data uploaded?
不会。「Properties 转 YAML」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The Properties to YAML runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「Properties 转 YAML」免费吗?需要注册吗?Is the Properties to YAML free? Do I need an account?
「Properties 转 YAML」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Properties to YAML is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.