AI Tools 工具已更新 3 天前

Prompt Variable Replacer

Fill {{variables}} in prompt templates with a live preview. Paste a template, fill the detected variables, and copy the final prompt instantly. Everything runs in your browser — nothing is sent to a server.

永久免费 易于使用 立竿见影的效果 私密且安全

使用 Prompt Variable Replacer

提示符变量替换器

在任意提示词模板中填入占位符,然后复制生成的提示词。所有操作都在您的浏览器中完成——不会向服务器发送任何数据。

1 · 选择一个模板
空模板
2 · 填空
0 / 0 已填满

点击一个方块将其填满。按Enter键保存,按Esc键取消。

3 · 您的提示
Incomplete
已填充的占位符以绿色高亮显示,空的占位符以琥珀色高亮显示。空值会使该变量在输出中保持可见。

阅读内容

了解该工具的工作原理以及何时使用它。

How to Use This Tool

Paste any prompt template that uses {{variable}} placeholders, or click Load sample to try a ready-made example. The tool detects every placeholder and builds a list of fields below.

1. Paste your template

Write or paste a prompt with placeholders such as {{role}}, {{topic}} or {{length}}. Placeholders must contain only letters, digits and underscores, and must start with a letter or underscore.

2. Fill the variables

Each detected variable gets its own input field. Type a value for each one, or click Fill all with sample to add realistic values instantly. Use Bulk paste to paste many values at once in a name=value format, one per line.

3. Copy the final prompt

The final prompt updates live as you type. Filled placeholders are highlighted in green; empty ones stay visible in amber. Copy the result, copy the raw template, or save the output as a .txt file.

Features

  • Live token and character counter for the final prompt
  • Malformed placeholder warnings (empty, invalid names, unclosed braces)
  • Per-variable usage count when a placeholder appears more than once
  • Auto-save: your template and values are saved in the browser
  • Presets: save and reload template versions
  • Undo after clearing values

常见问题解答

针对用户在信任结果之前常提出的疑问,提供简短解答。

A prompt variable is a placeholder such as {{topic}} inside a template. It lets you reuse the same template for many prompts by swapping in different values, which is especially useful for LLM workflows.

No. Everything runs in your browser. Your template and values are stored only in your browser's local storage and are never transmitted to any server.

Double curly braces with a name, like {{role}} or {{num_examples}}. Names can contain letters, digits and underscores, and must start with a letter or underscore.

Yes. Your current template and values are auto-saved in the browser, and you can also save named presets to switch between different templates.

Empty placeholders stay visible in the output and are highlighted in amber so you can see exactly what is still missing before you copy the final prompt.

评论 (0)

用于用户讨论、边界情况及后续建议。
发表评论
您的评论提交后将公开展示。
目前尚无评论。快来发表第一条评论吧!
请告诉我们!

报告此工具的问题

请描述您遇到的问题,以便我们进行调查并改进该工具。

什么最有帮助
请提供输入内容、预期结果、实际结果、浏览器/设备信息,如有帮助,请附上截图。
“截图”按钮会截取浏览器中的页面,并将生成的图片作为附件添加到此表单中。
整页截图
使用 html2canvas 在您的浏览器中生成。
尚未截取屏幕截图。
工具 报告