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.
How to use the code pad
- Pick a language.JavaScript, Python, Java, C#, Go, SQL and more. Your choice is remembered.
- Paste or write code.Tab indents, Shift + Tab outdents, and Enter keeps the indentation.
- Share a snippet.Click Share for a read-only link that expires when you choose.
- Download it.The file gets the right extension for the language, such as .py or .js.
What it does
| Languages | 20, including JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Rust, PHP, SQL |
|---|---|
| Editing | Tab and Shift + Tab on whole selections, auto-indent, line numbers |
| Share link | Read-only, highlighted, expires after 1, 7 or 30 days or never |
| Encryption | Optional: the key stays after # in the link |
| Running code | Not supported. This is an editor and snippet sharer, not a compiler |
| Saving | In 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.