100% 브라우저 메모리 연산 • 서버 로그 수집 제로 • 즉각적인 실행
Curious Techie개발자 툴박스
Encodings & FormatsANSI X3.4-1986 / RFC 20 / ISO/IEC 646✓ 빠른 조회 매트릭스 표 (7 개 항목) • KO

ASCII 코드표 (7비트 표준) 레퍼런스

10진수, 16진수, 2진수 값 및 제어 문자 (CR, LF, NUL) 총정리

CT
Curious-Techie Engineering Team검증된 작성자

Web Protocols & Security Architecture Research

발행일:
•
수정일:
•6 min read
공식 기술 규격:RFC 9110(IETF)
검토자: Curious-Techie Architecture Peer Review Group

개요 및 범위

ANSI X3.4(RFC 20)에 규정된 ASCII 표준은 모든 현대 텍스트 인코딩 및 UTF-8 하위 호환성의 기본 뼈대입니다.

표준 규격표 및 매트릭스

키워드, 상태 코드 또는 지시문 이름으로 실시간 검색

키 / 코드정의 및 세부사항GEO 시맨틱 계층표준 규격 및 참고
0 (NUL)
0 / 0x00: NUL (Null)

Null character; traditionally used as a string terminator in C, C++, and systems programming.

0x00 (Binary: 00000000)
●NUL
↳ASCII code 0
↳control character
↳null byte string terminator
ANSI X3.4

Null byte injection (%00) historically bypassed file extension validation in legacy web apps.

9 (HT)
9 / 0x09: HT (Horizontal Tab)

Horizontal Tabulation; advances cursor to the next tab stop.

\t (Hex: 0x09)
●HT
↳ASCII code 9
↳control character
↳horizontal tab delimiter
ANSI X3.4

Permitted whitespace in HTTP header fields and source code indentation.

10 (LF)
10 / 0x0A: LF (Line Feed)

Line Feed; moves the cursor down to the next line (Unix/Linux newline "\n").

\n (Hex: 0x0A)
●LF
↳ASCII code 10
↳control character
↳Unix newline feed
ANSI X3.4

Combined with CR (CRLF) to terminate lines in HTTP/1.1 protocols.

13 (CR)
13 / 0x0D: CR (Carriage Return)

Carriage Return; moves the cursor to the beginning of the current line.

\r (Hex: 0x0D)
●CR
↳ASCII code 13
↳control character
↳carriage return beginning
ANSI X3.4

CRLF Injection (\r\n) is an attack vector where attackers inject arbitrary HTTP headers.

32 (SP)
32 / 0x20: Space

The standard visible space character between words.

0x20 (%20 in URL percent-encoding)
●Space
↳ASCII code 32
↳printable character
↳word separation whitespace
ANSI X3.4

The lowest-valued printable ASCII character.

65 (A)
65 / 0x41: Letter "A"

First uppercase letter of the Latin alphabet.

Hex: 0x41, Binary: 01000001
●A
↳ASCII code 65
↳uppercase letter
↳Latin character
ANSI X3.4

Flipping bit 5 (0x20) converts "A" (65) to lowercase "a" (97).

97 (a)
97 / 0x61: Letter "a"

First lowercase letter of the Latin alphabet.

Hex: 0x61, Binary: 01100001
●a
↳ASCII code 97
↳lowercase letter
↳Latin character
ANSI X3.4

Bitwise OR with 0x20 guarantees lowercase in high-speed C parser routines.

기술 예제 및 실행 코드

Fast Bitwise Case Conversion in ASCII

c코드 복사
// Converting ASCII Uppercase to Lowercase via bitwise OR 0x20:
char to_lower(char c) {
    if (c >= 'A' && c <= 'Z') return c | 0x20;
    return c;
}

// Converting ASCII Lowercase to Uppercase via bitwise AND ~0x20:
char to_upper(char c) {
    if (c >= 'a' && c <= 'z') return c & ~0x20;
    return c;
}

Because ASCII was designed symmetrically, uppercase and lowercase differ by exactly one single bit (bit 5, value 32 / 0x20).

자주 묻는 질문 (FAQ)

표준 규격 Q&A

What is the difference between ASCII and UTF-8?↓
ASCII is a 7-bit encoding containing exactly 128 characters. UTF-8 is a variable-length Unicode encoding containing over 1 million characters. Characters 0 to 127 in UTF-8 are 100% byte-for-byte identical to ASCII.