Favorites

JavaScript >>> Unsigned right shift Operator

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
>>>
JavaScript Bitwise OperatorThis operator is supported by all modern browsers.
Updated 28th November 2026

The unsigned right shift operator (>>>) moves the bits of an integer to the right, filling with zeros, so the result is never negative.

Description

The unsigned right shift operator >>> shifts bits right and fills the left with zeros, treating the number as an unsigned 32-bit integer. x >>> 0 converts a number to an unsigned 32-bit integer.

Unlike >>, it always fills with zeros from the left, so the result is never negative and can be as large as 232 - 1. -1 >>> 0 gives 4294967295, the largest 32-bit unsigned value.

It's used in low-level code such as hashing algorithms and binary data parsing, and occasionally to make sure an index is a non-negative 32-bit integer. It's the one shift operator that doesn't work with BigInts, because BigInts have no fixed width.

Properties

Operator
>>>
Category
Bitwise
Precedence
10 (1 is lowest, 18 is highest)
Associativity
left-to-right

Syntax

x >>> y

Example

console.log(16 >>> 2);
console.log(-1 >>> 0);
console.log(-16 >>> 28);

Browser Support

The following information will show you the current browser support for the >>> operator. Hover over a browser icon to see the version that first introduced support for this operator.

This operator is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee