CREATE · REVIEW · EXPORT

Signed Integer Encoding Explorer

Compare two’s complement, one’s complement and sign-magnitude encodings, including range limits and negative-zero decoding.

Purpose-built workspaceBrowser processingPreview before export

Ready. Explore the example or use the input controls to begin.

Scope and practical limits

Widths 2–256 bits, up to 500 values. Encoding uses signed decimal; decoding uses binary patterns. Decimal -0 is encoded as ordinary zero. Out-of-range representations are identified individually.

The tool processes your work in the browser. The website’s advertising and analytics follow its privacy and consent settings. Projects are not saved automatically. Media workspaces export their files directly rather than storing them in project JSON.

Using Signed Integer Encoding Explorer

Compare two’s complement, one’s complement and sign-magnitude encodings, including range limits and negative-zero decoding.

  1. Start with the example and choose the declared input representation and any bit width.
  2. Change the operation or format, then inspect the precise result and validation messages.
  3. Copy the output or download text, JSON or a CSV audit. Save a project to retain editable inputs.

Example

At 8 bits, -5 is 11111011 in two’s complement, 11111010 in one’s complement and 10000101 in sign magnitude.

Questions & answers

Why is negative zero shown?

One’s complement and sign magnitude have distinct negative-zero bit patterns. Two’s complement has only one zero.

What are the limits?

Widths 2–256 bits, up to 500 values. Encoding uses signed decimal; decoding uses binary patterns. Decimal -0 is encoded as ordinary zero. Out-of-range representations are identified individually.

Does it save my input automatically?

No. Processing runs in your browser. Download your result or saved project before leaving. Site advertising and analytics follow the website consent and privacy settings.

Help improve this tool

Report a problem or suggest an improvement

Describe the issue without pasting private tool input. Feedback goes to our admin inbox.

Find another tool · Read practical guides