Skip to content

Collection of handy online tools for developers, with great UX.

114 B
Raw Blame
export function getStringSizeInBytes(text: string) {
  return new TextEncoder().encode(text).buffer.byteLength;
}