Skip to content
UniKit

Hello World in many languages

48 real Hello World samples for C/C++/C#/Java/Kotlin/Go/Rust/Python/Ruby/PHP/JS/TS/Swift/Dart/Scala/Elixir/Erlang/Haskell/OCaml/Lisp/Scheme/Clojure/F#/Lua/Perl/R/Julia/Nim/Zig/V/shells/Batch/SQL/HTML/CSS/JSON/YAML/TOML/Markdown/Assembly/COBOL/Fortran/Pascal/Delphi/Prolog/Ada. Pick a language to get complete runnable code with its file extension and run command; the input replaces the greeting.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Input

Result

The result can be copied directly.

Enter a greeting to see the sample for the selected language

Characters: 0 · Lines: 0 · Built-in languages: 0 · Language index: 0

What this tool does

  • Grab a runnable skeleton when starting a new language.
  • Compare idiomatic style across languages while writing docs.
  • Replace the greeting and paste the sample into your project.

Example

Input

Hello, World!

Output

// Python —— Hello World
// 文件:main.py
// 运行:python3 main.py

print("Hello, World!")

Samples use each language idiom and official run commands; this tool only generates text and executes nothing.

Frequently asked questions

Are these samples runnable?

Yes — each is the idiomatic entry point of its language and the run command comes from the official toolchain, e.g. python3 main.py or rustc main.rs -o main && ./main. The tool only generates text and runs nothing.

Why are JSON / YAML / Markdown included?

They are common Hello World starting points for configuration and documentation formats; view them with jq / yq / pandoc.

What does the input field do?

Non-empty input becomes the greeting and replaces Hello, World!, so "你好" yields println!("你好");. Empty input keeps the default greeting.

How many languages are supported?

48. Tick "List supported languages only" to see ids, display names, extensions and run commands.

Keywords:Hello Worldhello world code

Related tools