# Extended Text Base Codecs (Base65536 + netstring)

Encode and decode with less-common text codecs: Base65536 (binary → dense Unicode) and netstring (self-delimiting framing). Base85 is intentionally not rebuilt (already covered).

> Canonical page: https://elysiatools.com/en/tools/extended-text-base-codecs

- **Category:** Text Processing

- **Keywords:** base65536, netstring, binary to text, unicode encoding, bernstein, message framing, dense encoding

## Overview

Two text codecs that the existing base32/base45/base58 tools do not cover. Base65536 (by qntm) packs every two bytes into one of 65,536 Unicode code points — denser than Base64, useful when you want binary-as-text over a Unicode-friendly channel and don't mind exotic-looking output. netstring (D. J. Bernstein's self-delimiting format) frames data as :, where the length is the UTF-8 byte count; netstrings concatenate cleanly, so encoding one item per line produces a valid framed stream. The netstring decoder strictly validates lengths and trailing commas and reports any malformed segments instead of silently corrupting.

## Inputs

- **Text** (textarea): Type text to encode, or paste encoded data to decode…
- **Codec** (select)
- **Direction** (select)

## When to use

- Use Base65536 when you need a compact Unicode representation of UTF-8 text.
- Use netstring when data needs explicit length framing for reliable parsing.
- Decode existing Base65536 or netstring text to recover the original input.

## How it works

- Enter text or encoded data in the Text field.
- Choose Base65536 or netstring from the Codec menu.
- Select Encode or Decode as the Direction.
- Run the tool to view the HTML result; netstring decoding checks the declared length and trailing comma.

## Use cases

- Represent UTF-8 text as dense Unicode for a Unicode-friendly channel.
- Frame messages with explicit byte lengths for parsing.
- Check and decode Base65536 or netstring values during development and troubleshooting.

## Frequently asked questions

### What does Base65536 do?

Base65536 encodes UTF-8 bytes into dense Unicode characters and can decode them back losslessly.

### What is a netstring?

A netstring uses the format :, such as 5:hello,.

### Does netstring length count characters or bytes?

The length counts UTF-8 bytes, not characters.

### Can I decode malformed netstrings?

The decoder validates lengths and trailing commas and reports malformed segments.

### Which direction should I choose?

Choose Encode to create Base65536 or netstring text, and Decode to recover the original text.

## Related tools

- [Rail Fence (ZigZag) Cipher](https://elysiatools.com/en/tools/zigzag-railfence-text): Encode, decode, visualize, and brute-force the Rail Fence transposition cipher. See the zigzag rail grid and try all rail counts to crack a ciphertext.
- [Leet Speak Converter](https://elysiatools.com/en/tools/leet-speak-converter): Convert text to and from leet speak (1337). Encode with Basic, Full, or Caps styles, or decode leet back to plain text.
- [Morse Code Translator](https://elysiatools.com/en/tools/morse-code-translator): Translate text to and from International Morse Code (ITU-R M.1677) with live audio playback. Auto-detects direction, adjustable WPM speed (PARIS standard) and tone frequency.
- [A1Z26 Letter-Number Workbench](https://elysiatools.com/en/tools/a1z26-letter-number-workbench): Convert between letters and numbers (A=1, B=2, … Z=26) with configurable separator and case, decode numbers back to letters, and compute the letter sum of any text.
- [ASCII85 Converter](https://elysiatools.com/en/tools/ascii85-converter): Encode and decode text to/from ASCII85 format (Adobe version)
- [Base32 Converter](https://elysiatools.com/en/tools/base32-converter): Encode and decode text to/from Base32 format with multiple variants
- [Base45 Converter](https://elysiatools.com/en/tools/base45-converter): Encode and decode text to/from Base45 format (RFC 9285)
- [Base58 Converter](https://elysiatools.com/en/tools/base58-converter): Encode and decode text to/from Base58 format with Bitcoin and Ripple variants

## Samples

- [Text with Emoji Samples](https://elysiatools.com/en/samples/text-with-emoji-samples): Mixed language text containing various Unicode emojis for testing emoji extraction
- [Text with Date Samples](https://elysiatools.com/en/samples/text-with-date-samples): Text containing various date formats for testing date extraction and parsing
- [Chinese-English Mixed Text Samples](https://elysiatools.com/en/samples/text-chinese-english-mixed-samples): Sample text files with mixed Chinese and English content for testing automatic spacing tools
- [Text Case Format Samples](https://elysiatools.com/en/samples/text-case-formats): Examples of different text case formats: camelCase, snake_case, kebab-case, PascalCase, and more
