demo · v136

Encoder Playground

Both sides of the new helpers in one playground. Type a bidding string, encode it with TextEncoder inside a Protected Audience worklet sandbox — see the byte buffer — then decode it back with a configurable encoding (UTF-8 / UTF-16LE / ASCII fatal). Plus per-byte hex view and a UTF-8 length budget meter.

type any keyword string — encoder is run synchronously so it mirrors a worklet call.

char length: utf-8 bytes: fits in 256-byte trusted bidding signal?

TextEncoder.encode()

TextDecoder.decode()

see also