In computer programming, a netstring is a formatting method for byte strings that uses a declarative notation to indicate the size of the string.