cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

  h1 NATO Phonetic Converter
  input(type="text" placeholder="Word or phrase" v-model="input")
  button#btn-reset(v-on:click="clear") clear
  p {{ result }}
              @import url('https://fonts.googleapis.com/css?family=Cutive+Mono');
$color_darkest: #114B5F;
$color_dark: #1A936F;
$color_light: #88D498;
$color_lightest: #F3E9D2;
input, p {
  font-family: inherit;
  font-size: 1.25em;

body {
  background: $color_dark;
  color: $color_lightest;
  display: flex;
  font-family: 'Cutive Mono', monospace;
  justify-content: center;
  text-align: center;

button {
  border: 3px solid $color_light;
  border-radius: 150px;
  cursor: pointer;
  margin: 0 2vw 1em 2vw;
  outline: 0;
  text-transform: uppercase;
  transition: all .25s ease;
  width: 140px;
  height: 70px;
  vertical-align: center;

input {
  background: transparent;
  border: none;
  border-bottom: 3px solid $color_light;
  color: $color_lightest;
  font-size: 1.25em;
  height: 1.5em;
  outline: none;
  margin: 0 0 2em 0;
  width: 70vw;

::-webkit-input-placeholder {
  color: $color_light;

p {
  padding: 0 7vw;

main {
  margin-top: 3em;
  max-width: 1025px;
  width: 100vw;

#btn-reset {
  background-color: $color_dark;
  color: $color_light;
  &:hover {
    background-color: $color_darkest;
    color: $color_lightest;

@media (min-width: 1025px) {
  button {
    padding: 0;
  input {
    width: 70%;
              const nato = letter => {
  const re = /[a-zA-Z0-9]/g;
  letter = letter.toLowerCase();
  const cases = {
    'a': 'Alpha',
    'b': 'Bravo',
    'c': 'Charlie',
    'd': 'Delta',
    'e': 'Echo',
    'f': 'Foxtrot',
    'g': 'Golf',
    'h': 'Hotel',
    'i': 'India',
    'j': 'Juliette',
    'k': 'Kilo',
    'l': 'Lima',
    'm': 'Mike',
    'n': 'November',
    'o': 'Oscar',
    'p': 'Papa',
    'q': 'Quebec',
    'r': 'Romeo',
    's': 'Sierra',
    't': 'Tango',
    'u': 'Uniform',
    'v': 'Victor',
    'w': 'Whiskey',
    'x': 'Xray',
    'y': 'Yankee',
    'z': 'Zulu',
    '0': 'Zero',
    '1': 'Won',
    '2': 'Two',
    '3': 'Three',
    '4': 'Four',
    '5': 'Five',
    '6': 'Six',
    '7': '7',
    '8': 'Eight',
    '9': 'Niner',
    ' ': ' • '
  if (cases[letter]) {
    return cases[letter];
  } else if (letter.search(re) === -1) {
    return '';

new Vue({
  el: '#app',
  data: {
    input: '',
  computed: {
    result() {
      return this.input.split('').map(el => nato(el)).join(' ');
  methods: {
    clear() {
      this.input = '';


Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................