notepadsuite

Codepad. Paste code, read it clearly, share it.

A scratchpad for code with syntax highlighting for 20 languages, line numbers and proper Tab handling. Share a snippet as a read-only link, encrypted if you like.

Saved in this browser

How to use the code pad

  1. Pick a language.JavaScript, Python, Java, C#, Go, SQL and more. Your choice is remembered.
  2. Paste or write code.Tab indents, Shift + Tab outdents, and Enter keeps the indentation.
  3. Share a snippet.Click Share for a read-only link that expires when you choose.
  4. Download it.The file gets the right extension for the language, such as .py or .js.

What it does

Languages20, including JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Rust, PHP, SQL
EditingTab and Shift + Tab on whole selections, auto-indent, line numbers
Share linkRead-only, highlighted, expires after 1, 7 or 30 days or never
EncryptionOptional: the key stays after # in the link
Running codeNot supported. This is an editor and snippet sharer, not a compiler
SavingIn this browser as you type

A code pad, not a code runner

Use it to tidy up a snippet before you paste it into a chat, to read code someone sent you with proper highlighting, or to share a few lines with a link instead of a screenshot. It doesn’t run code. For running code, use your own development tools.

Questions

Can I run code here?

No. The code pad highlights and shares code but doesn’t execute it. That keeps it fast and means your code never runs on anyone’s server.

Which languages are highlighted?

JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Rust, PHP, Ruby, Kotlin, Swift, SQL, HTML and XML, CSS, JSON, YAML, Bash and Markdown. Highlighting uses the open-source Prism library.

Who can see a shared snippet?

Only people with the link. Shared pages are hidden from search engines, and with “Encrypt the link” on, our server stores only ciphertext.

Does Tab move focus out of the editor?

Inside the code area, Tab indents. Press Esc and then Tab to move focus to the next control.