How to say "code" in Japanese

Choosing the right word
programming
  • コードJLPT N3approx.Common
    nounProgram code written by developers, and also codes like barcodes or product codes; note that コード also means an electric cord.
    Collocationコードを書かく
    Mac OS Xといっても、Mac OSのコードをバージョンアップした訳わけではない。↗
    Although it's "Mac OS X", that doesn't mean that the Mac OS code itself has been upgraded to a new version.
secret codes
  • 暗号あんごうCommon
    nounA secret code or cipher used to hide a message; 暗号化 means encryption.
    Collocation暗号あんごうを解とく
    スパイは情報じょうほうを暗号あんごうで送おくった。↗
    The spy sent information by code.
number codes
rules

Program code is 「コード」; a secret code is 暗号. For number codes, say 暗証番号 (PIN) or 郵便番号 (postal code). For a code of rules, use 規約 for the rules of an organization or service and 掟 for the code of a community.

Usage comparisons are AI-assisted and cross-checked by multiple models; for study reference only

Japanese equivalents
See also

JLPT vocabulary levels are community estimates, not official (no official lists have been published since the 2010 revision).

Say it right, write it right

Core lookup works fully offline, with cloud pronunciation and one-tap save & review. Free, no sign-up.

Free downloadWindowsFree downloadmacOSDownload on the App StoreGet it on Google Play
MobileiOS / Android

Android

QR code for the Google Play pageGet it on Google Play

Scan it with your Android phone to install, or search for “Tomoshi” on Google Play.

iOS

QR code for the App Store pageDownload on the App Store

Scan it with your iPhone camera to install, or search for “Tomoshi” in the App Store.

Install the browser extensionLook words up on any web page · Chrome / Edge / Safari

Screenshot of a Tomoshi lookup resultScreenshot of Tomoshi lookup results on a phone

Windows macOS Chrome / Edge / Safari extension iOS / Android