Skip to content
UniKit

Clipboard share code

Pack text into a self-contained share code to move it between devices: add an optional password and it is encrypted with WebCrypto PBKDF2-SHA256 plus AES-GCM-256, otherwise it is only Base64-encoded. There is no server here, so you deliver the code yourself; “burn after reading” clears the reader’s local draft.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Create a share code

Burn after readingWhen the other side opens the code, their local draft is deleted immediately. Note: the code itself stays valid — anyone holding it can open it again.

Share code

Copy the whole block to the other side; line breaks and spaces are ignored when pasting back.

Create or open a share code to see the content

Characters

0

Lines

0

UTF-8 bytes

0

Encryption

Not encrypted (Base64)

What this tool does

  • Move a piece of text, a command or a one-time password from a laptop to a phone: create a share code, send it with any chat app, paste it on the other device
  • When the content should not sit in a chat log in plain text, add a password: the code then carries AES-GCM ciphertext only, and you tell the other side the password by phone or in person
  • Show someone a sensitive snippet once: turn on “burn after reading” and their local draft is deleted as soon as they open the code

Example

Input

见字如面

Output

UKCLIP1.eyJ2IjoxLCJlbmMiOmZhbHNlLCJidXJuIjpmYWxzZSwidGV4dCI6IuingeWtl-WmgumdoiJ9

Without a password the code is just Base64-encoded JSON (the subject stays readable): paste the code above back into “Open a share code” and you get 见字如面 back.

Frequently asked questions

Without a server, how is this “cross-device”?

You carry it yourself. This is a static front-end site with no backend: a share code is just a string that you send to the other device through chat, email or a QR code and paste there. There is no “enter a pickup code and fetch it” feature, and the page never uploads your content anywhere.

How strong is the password protection?

The text is encrypted with AES-GCM-256 using a key derived by PBKDF2-SHA256 at 210,000 iterations, with a fresh 16-byte salt and 12-byte IV every time — so the same text produces a different code on each run. The real strength is your password: a weak one (say six digits) can be brute-forced offline, so use a long password and share it through a different channel. Codes without a password are only Base64-encoded and anyone holding them can read the content.

What exactly does “burn after reading” burn? Does the code stop working?

Only the local draft (localStorage) in the browser that opened it. The share code itself stays valid and cannot be revoked remotely — anyone holding it can open it again. For real secrecy, have the other side relay the content through another channel and destroy the code afterwards.

Why is the share code so long, and how much text fits?

The payload is Base64-encoded JSON, so it is roughly 1.4× the original size, plus salt, IV and Base64 overhead when encrypted. The limit is 256 KiB of UTF-8 text (a CJK character is 3 bytes), but staying within a few tens of KB is safer: very long codes get truncated by chat apps, and a QR code or a file transfer works better.

Why does this page need HTTPS?

WebCrypto (crypto.subtle) is only available in a secure context: https or localhost. The live site is served over https and localhost works for development; on plain http or in an old browser the tool reports that WebCrypto is unavailable instead of pretending to encrypt.

Keywords:clipboard share codeshare text between devicesencrypted text shareburn after reading texttxt

Related tools