All tools

Hello World in 22 Languages

Hello world snippets across 22 popular languages.

python
print("Hello, world!")

Hello world in 22 languages. Useful for learning, testing build configs, or comparing syntax. Strings are not properly escaped in the output - if your message has quotes or backslashes, the code may need fixing by hand.

About

Pick a language, type a message, copy a complete hello world snippet. Covers Python, JavaScript, TypeScript, Java, C, C++, Go, Rust, Ruby, PHP, Swift, Kotlin, Bash, PowerShell, Haskell, Elixir, Scala, R, Julia, Lua, Perl, and Zig.

How to use

  1. Pick a language.
  2. Customize the message.

FAQ

Why hello world?+

It's the smallest complete program in any language. Useful for testing your build, learning syntax, or comparing how languages handle output.