DevKits

ASCII 115

Latin Small Letter S (s)

Printable ASCII

Lowercase letter s. ASCII code 115. %s is the string format specifier in most printf implementations.

Common uses & context

Thelowercase letter 's' has ASCII code 115 (0x73). Its uppercase twin 'S' sits exactly 32 code points away at 83. That constant gap of 32 — a single bit, 0x20 — is why changing letter case is one of the cheapest operations a CPU can do: you flip or mask one bit rather than looking anything up. Lowercase letter s. ASCII code 115. %s is the string format specifier in most printf implementations.

The lowercase Latin letters form the contiguous block 97–122, so range checks like c >= 'a' && c <= 'z' work without a lookup table. To convert 's' to its uppercase form youclear bit 5: 's' & ~0x20 gives 'S'. Because uppercase (65–90) sorts before lowercase (97–122) in raw byte order, naive sorting places every capitalized wordahead of every lowercase one — the reason "Zebra" comes before "apple" unless you sort case-insensitively.

All encodings at a glance

Decimal115
Hexadecimal0x73
Octal0163
Binary01110011
HTML numeric entity&#115;
URL encoding%73
UTF-8 bytes0x73

Code snippets

JavaScript

String.fromCharCode(115); // "s"
115.toString(16); // "73"

Python

chr(115)           # 's'
ord(chr(115))      # 115
hex(115)           # '0x73'

HTML

&#115;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Case toggle: 's' & ~0x20 = 'S' (a single-bit change).
  • Letter test: c >= 'a' && c <= 'z' — the lowercase block is contiguous (97–122).

Frequently asked questions

What character is ASCII code 115?

ASCII code 115 is the character 's' (Latin Small Letter S). In hexadecimal it is 0x73, in octal 0163, and in binary 01110011.

What is 0x73 in ASCII?

Hexadecimal 0x73 equals decimal 115, which is the character 's' (Latin Small Letter S). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x73 = 115) and look up that code point.

How do I write the character with code 115 in code?

In JavaScript use String.fromCharCode(115); in Python use chr(115); in HTML use the numeric entity &#115;. In a URL it is percent-encoded as %73, and in UTF-8 it is stored as the byte sequence 0x73.

What is the uppercase form of 's' in ASCII?

's' is code 115; its uppercase counterpart 'S' is code 83. The two always differ by 32, so you can convert by subtracting 32 (or clearing bit 0x20).

Nearby codes

Encode & convert this character