ComfyUI Node

Base64 - Show & Copy Text

The copy button your base64 output deserves

By GrailGreg·Created about a year ago·Updated about a year ago· 2
Base64 - Show & Copy Text
      text

      Once SaveImage64 hands you a base64 string, staring at it does nothing useful. You want to see it, copy it, and paste it somewhere. That's ShowText64, the other half of GrailGreg's images_base64 pack: a pure display node that takes a STRING, shows it in a read-only text box right on the node, and adds a Copy Text button that dumps the whole thing to your clipboard.

      It isn't complicated, and it doesn't need to be. There's a whole genre of "show text" nodes in the ecosystem - every utility pack has one - and this is that, with two tweaks: the copy button is built in, and it ships next to SaveImage64 so the base64 workflow stays inside one tiny pack instead of two.

      How it works

      The Python half is a pass-through: it takes the text and returns it in the node's UI payload, nothing more. The real work lives in the JavaScript extension the pack ships. On every execution it rebuilds a read-only multiline widget from whatever string just arrived, styles it like a text area, and hangs a button off it. Click the button and it calls navigator.clipboard.writeText(...), flashes "Copied!" for about a second, then swaps back. No outputs, no return types - it's an OUTPUT_NODE that's a dead end on purpose. It shows you something instead of producing data.

      The input that matters

      There's one input: text, a STRING with forceInput set. That means you can't type into it - it has to come from a wire. In practice that's SaveImage64's base64 output, or a prompt, or anything else that ends up as a string. Wire it up, hit run, and the widget fills.

      Install

      Same pack, same steps as its sibling - and there's nothing extra to download. No requirements file, no models. ComfyUI Manager: search "images_base64", install, restart. Or by hand:

      cd ComfyUI/custom_nodes
      git clone https://github.com/GrailGreg/images_base64
      

      Restart ComfyUI and you'll find ShowText64 under the Image base 64 category - the author's slightly odd naming choice, since it's really just a text viewer.

      Where people get burned

      • The copy button needs a secure context. navigator.clipboard only works on localhost or HTTPS. Run ComfyUI over plain http://192.168.x.x on your LAN and the button can silently fail in some browsers. The text is still there in the widget - select it and copy by hand.
      • Big strings make the node huge. Paste a 2 MB base64 image in and the node tries to render all of it. It's vertically resizable and scrollable, but a multi-megabyte string will still make the graph feel sluggish.
      • It's a display node, not a router. If your goal is to send that base64 to a webhook or API, don't route through ShowText64 - wire SaveImage64's output straight into an HTTP or webhook node. This node is where strings go to be seen, not to go.

      One expectation to set: like its sibling, this pack has essentially zero community footprint - no forum threads, no hype, no drama. It's a two-node utility pack for one specific job. If that job is yours, it does it without adding a single dependency. If it isn't, you'll never miss it.

      CategoryImage base 64

      Inputs (1)

      NameTypeDefaultDescription
      textSTRING

      Outputs (0)

      No outputs